- java.lang.Object
-
- bdv.util.PlaceHolderConverterSetup
-
- All Implemented Interfaces:
ConverterSetup
public final class PlaceHolderConverterSetup extends Object implements ConverterSetup
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface bdv.tools.brightness.ConverterSetup
ConverterSetup.SetupChangeListener
-
-
Constructor Summary
Constructors Constructor Description PlaceHolderConverterSetup(int setupId, double min, double max, int rgb)PlaceHolderConverterSetup(int setupId, double min, double max, net.imglib2.type.numeric.ARGBType color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.imglib2.type.numeric.ARGBTypegetColor()Get the color for this converter.doublegetDisplayRangeMax()Get the (smallest) source value that is mapped to the maximum of the target range.doublegetDisplayRangeMin()Get the (largest) source value that is mapped to the minimum of the target range.intgetSetupId()Get the id of theBasicViewSetupthis converter acts on.voidsetColor(int rgb)voidsetColor(net.imglib2.type.numeric.ARGBType color)Set the color for this converter.voidsetDisplayRange(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()SetupChangeListeners can be added/removed here, and will be notified about changes to thisConverterSetup.booleansupportsColor()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface bdv.tools.brightness.ConverterSetup
setViewer
-
-
-
-
Constructor Detail
-
PlaceHolderConverterSetup
public PlaceHolderConverterSetup(int setupId, double min, double max, int rgb)
-
PlaceHolderConverterSetup
public PlaceHolderConverterSetup(int setupId, double min, double max, net.imglib2.type.numeric.ARGBType color)
-
-
Method Detail
-
setupChangeListeners
public org.scijava.listeners.Listeners<ConverterSetup.SetupChangeListener> setupChangeListeners()
Description copied from interface:ConverterSetupSetupChangeListeners can be added/removed here, and will be notified about changes to thisConverterSetup.- Specified by:
setupChangeListenersin interfaceConverterSetup
-
getSetupId
public int getSetupId()
Description copied from interface:ConverterSetupGet the id of theBasicViewSetupthis converter acts on.- Specified by:
getSetupIdin interfaceConverterSetup- Returns:
- the id of the
BasicViewSetupthis converter acts on.
-
setDisplayRange
public void setDisplayRange(double min, double max)Description copied from interface:ConverterSetupSet the range of source values that is mapped to the full range of the target type. Source values outside of the specified range are clamped.- Specified by:
setDisplayRangein interfaceConverterSetup- Parameters:
min- source value to map to minimum of the target range.max- source value to map to maximum of the target range.
-
setColor
public void setColor(net.imglib2.type.numeric.ARGBType color)
Description copied from interface:ConverterSetupSet the color for this converter.- Specified by:
setColorin interfaceConverterSetup
-
setColor
public void setColor(int rgb)
-
supportsColor
public boolean supportsColor()
- Specified by:
supportsColorin interfaceConverterSetup
-
getDisplayRangeMin
public double getDisplayRangeMin()
Description copied from interface:ConverterSetupGet the (largest) source value that is mapped to the minimum of the target range.- Specified by:
getDisplayRangeMinin interfaceConverterSetup- Returns:
- source value that is mapped to the minimum of the target range.
-
getDisplayRangeMax
public double getDisplayRangeMax()
Description copied from interface:ConverterSetupGet the (smallest) source value that is mapped to the maximum of the target range.- Specified by:
getDisplayRangeMaxin interfaceConverterSetup- Returns:
- source value that is mapped to the maximum of the target range.
-
getColor
public net.imglib2.type.numeric.ARGBType getColor()
Description copied from interface:ConverterSetupGet the color for this converter.- Specified by:
getColorin interfaceConverterSetup- Returns:
- the color for this converter.
-
-