public final class PlaceHolderConverterSetup extends Object implements ConverterSetup
ConverterSetup.SetupChangeListener
Constructor and Description |
---|
PlaceHolderConverterSetup(int setupId,
double min,
double max,
ARGBType color) |
PlaceHolderConverterSetup(int setupId,
double min,
double max,
int rgb) |
Modifier and Type | Method and Description |
---|---|
ARGBType |
getColor()
Get the color for this converter.
|
double |
getDisplayRangeMax()
Get the (smallest) source value that is mapped to the maximum of the
target range.
|
double |
getDisplayRangeMin()
Get the (largest) source value that is mapped to the minimum of the
target range.
|
int |
getSetupId()
Get the id of the
BasicViewSetup this converter acts on. |
void |
setColor(ARGBType color)
Set the color for this converter.
|
void |
setColor(int rgb) |
void |
setDisplayRange(double min,
double max)
Set the range of source values that is mapped to the full range of the
target type.
|
org.scijava.listeners.Listeners<ConverterSetup.SetupChangeListener> |
setupChangeListeners()
SetupChangeListener s can be added/removed here, and will be
notified about changes to this ConverterSetup . |
boolean |
supportsColor() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setViewer
public PlaceHolderConverterSetup(int setupId, double min, double max, int rgb)
public PlaceHolderConverterSetup(int setupId, double min, double max, ARGBType color)
public org.scijava.listeners.Listeners<ConverterSetup.SetupChangeListener> setupChangeListeners()
ConverterSetup
SetupChangeListener
s can be added/removed here, and will be
notified about changes to this ConverterSetup
.setupChangeListeners
in interface ConverterSetup
public int getSetupId()
ConverterSetup
BasicViewSetup
this converter acts on.getSetupId
in interface ConverterSetup
BasicViewSetup
this converter acts on.public void setDisplayRange(double min, double max)
ConverterSetup
setDisplayRange
in interface ConverterSetup
min
- source value to map to minimum of the target range.max
- source value to map to maximum of the target range.public void setColor(ARGBType color)
ConverterSetup
setColor
in interface ConverterSetup
public void setColor(int rgb)
public boolean supportsColor()
supportsColor
in interface ConverterSetup
public double getDisplayRangeMin()
ConverterSetup
getDisplayRangeMin
in interface ConverterSetup
public double getDisplayRangeMax()
ConverterSetup
getDisplayRangeMax
in interface ConverterSetup
public ARGBType getColor()
ConverterSetup
getColor
in interface ConverterSetup
Copyright © 2015–2021 Fiji. All rights reserved.