Class GraphColorMapper<V,E extends org.jgrapht.graph.DefaultWeightedEdge>

java.lang.Object
sc.fiji.snt.analysis.ColorMapper
sc.fiji.snt.analysis.graph.GraphColorMapper<V,E>
Type Parameters:
V - the vertex type
E - the edge type, must extend DefaultWeightedEdge

public class GraphColorMapper<V,E extends org.jgrapht.graph.DefaultWeightedEdge> extends ColorMapper
A color mapping utility for graph visualization that assigns colors to vertices and edges based on various graph metrics. This class supports multiple mapping strategies and color schemes for graph visualization.

The mapper supports the following metrics:

The mapping can be applied to:

See Also:
  • Field Details

  • Constructor Details

    • GraphColorMapper

      public GraphColorMapper(org.scijava.Context context)
    • GraphColorMapper

      public GraphColorMapper()
  • Method Details

    • getMetrics

      public static List<String> getMetrics()
      Gets the list of supported mapping metrics.
      Returns:
      the list of mapping metrics.
    • getAvailableLuts

      public Set<String> getAvailableLuts()
      Gets the available LUTs.
      Returns:
      the set of keys, corresponding to the set of LUTs available
    • getColorTable

      public net.imglib2.display.ColorTable getColorTable(String lut)
    • map

      public int map(SNTGraph<V,E> graph, String measurement, String lut)
    • map

      public int map(SNTGraph<V,E> graph, String measurement, net.imglib2.display.ColorTable colorTable)
    • map

      public int map(SNTGraph<V,E> graph, org.jgrapht.graph.AsSubgraph<V,E> subgraph, String measurement, net.imglib2.display.ColorTable colorTable)
    • mapToProperty

      protected void mapToProperty(String measurement, net.imglib2.display.ColorTable colorTable)
    • mapToConnectivity

      protected void mapToConnectivity(net.imglib2.display.ColorTable colorTable)
    • mapToEdgeWeight

      protected void mapToEdgeWeight(net.imglib2.display.ColorTable colorTable)
    • mapToBetweennessCentrality

      protected void mapToBetweennessCentrality(net.imglib2.display.ColorTable colorTable)
    • mapToEccentricity

      protected void mapToEccentricity(net.imglib2.display.ColorTable colorTable)
    • mapToPageRank

      protected void mapToPageRank(net.imglib2.display.ColorTable colorTable)
    • mapToInDegree

      protected void mapToInDegree(net.imglib2.display.ColorTable colorTable)
    • mapToOutDegree

      protected void mapToOutDegree(net.imglib2.display.ColorTable colorTable)
    • mapToIncomingWeight

      protected void mapToIncomingWeight(net.imglib2.display.ColorTable colorTable)
    • mapToOutgoingWeight

      protected void mapToOutgoingWeight(net.imglib2.display.ColorTable colorTable)
    • mapToHeavyPathDecomposition

      protected void mapToHeavyPathDecomposition(net.imglib2.display.ColorTable colorTable)
    • setMinMax

      public void setMinMax(double min, double max)
      Description copied from class: ColorMapper
      Sets the LUT mapping bounds.
      Overrides:
      setMinMax in class ColorMapper
      Parameters:
      min - the mapping lower bound (i.e., the highest measurement value for the LUT scale). It is automatically calculated (the default) when set to Double.NaN
      max - the mapping upper bound (i.e., the highest measurement value for the LUT scale).It is automatically calculated (the default) when set to Double.NaN.
    • resetMinMax

      public void resetMinMax()
    • setLegend

      public void setLegend(GraphEditor editor)