public class NodeColorMapper extends ColorMapper
NodeStatistics
results.Modifier and Type | Field and Description |
---|---|
static String |
BRANCH_LENGTH
Flag for "Branch length" analysis.
|
static String |
BRANCH_ORDER
Flag for "Branch order" statistics.
|
static String |
RADIUS
Flag for "Node radius" statistics.
|
static String |
VALUES
Flag for statistics on node "Node intensity values"
|
static String |
X_COORDINATES
Flag for "X coordinates" statistics.
|
static String |
Y_COORDINATES
Flag for "Y coordinates" statistics.
|
static String |
Z_COORDINATES
Flag for "Z coordinates" statistics.
|
colorTable, integerScale, max, min
Constructor and Description |
---|
NodeColorMapper(NodeStatistics<?> nodeStatistics)
Instantiates the mapper.
|
NodeColorMapper(NodeStatistics<?> nodeStatistics,
Context context)
Instantiates the mapper.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAvailableLuts()
Gets the available LUTs.
|
ColorTable |
getColorTable() |
ColorTable |
getColorTable(String lut) |
static List<String> |
getMetrics()
Gets the list of supported mapping metrics.
|
double[] |
getMinMax()
Returns the mapping bounds
|
Collection<? extends SNTPoint> |
getNodes() |
static void |
main(String... args) |
void |
map(String measurement,
ColorTable colorTable)
Maps nodes after the specified measurement.
|
void |
map(String measurement,
String lut)
Maps nodes after the specified measurement.
|
void |
setMinMax(double min,
double max)
Sets the LUT mapping bounds.
|
getColor, getColorRGB
public static final String BRANCH_LENGTH
public static final String BRANCH_ORDER
public static final String RADIUS
public static final String X_COORDINATES
public static final String Y_COORDINATES
public static final String Z_COORDINATES
public static final String VALUES
public NodeColorMapper(NodeStatistics<?> nodeStatistics, Context context)
nodeStatistics
- the NodeStatistics instance holding the nodes to be
mappedcontext
- the SciJava application context providing the services
required by the classpublic NodeColorMapper(NodeStatistics<?> nodeStatistics)
nodeStatistics
- the NodeStatistics instance holding the nodes to be
mappedpublic static List<String> getMetrics()
public void map(String measurement, ColorTable colorTable)
map
in class ColorMapper
measurement
- the measurement (X_COORDINATES
,
Y_COORDINATES
, etc.)colorTable
- the color table specifying the color mapping. Null not
allowed.public void map(String measurement, String lut)
measurement
- the measurement (X_COORDINATES
,
Y_COORDINATES
, etc.)lut
- the lookup table specifying the color mapping. Null not
allowed.public Collection<? extends SNTPoint> getNodes()
public ColorTable getColorTable(String lut)
public Set<String> getAvailableLuts()
public void setMinMax(double min, double max)
ColorMapper
setMinMax
in class ColorMapper
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.NaNmax
- 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.public double[] getMinMax()
ColorMapper
getMinMax
in class ColorMapper
public ColorTable getColorTable()
getColorTable
in class ColorMapper
public static void main(String... args)
Copyright © 2015–2021 Fiji. All rights reserved.