-
- All Known Implementing Classes:
PlaceHolderConverterSetup,RealARGBColorConverterSetup
public interface ConverterSetupModify the range and color of the converter for a source. Because each source can have its own converter, this is used to adjust brightness, contrast, and color of individual sources.- Author:
- Tobias Pietzsch
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceConverterSetup.SetupChangeListenerConverterSetup.SetupChangeListeners are notified about changes to aConverterSetup.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated 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(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.default voidsetViewer(RequestRepaint viewer)Deprecated.booleansupportsColor()
-
-
-
Method Detail
-
setupChangeListeners
org.scijava.listeners.Listeners<ConverterSetup.SetupChangeListener> setupChangeListeners()
SetupChangeListeners can be added/removed here, and will be notified about changes to thisConverterSetup.
-
getSetupId
int getSetupId()
Get the id of theBasicViewSetupthis converter acts on.- Returns:
- the id of the
BasicViewSetupthis converter acts on.
-
setDisplayRange
void setDisplayRange(double min, double max)Set 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.- Parameters:
min- source value to map to minimum of the target range.max- source value to map to maximum of the target range.
-
setColor
void setColor(net.imglib2.type.numeric.ARGBType color)
Set the color for this converter.
-
supportsColor
boolean supportsColor()
-
getDisplayRangeMin
double getDisplayRangeMin()
Get the (largest) source value that is mapped to the minimum of the target range.- Returns:
- source value that is mapped to the minimum of the target range.
-
getDisplayRangeMax
double getDisplayRangeMax()
Get the (smallest) source value that is mapped to the maximum of the target range.- Returns:
- source value that is mapped to the maximum of the target range.
-
getColor
net.imglib2.type.numeric.ARGBType getColor()
Get the color for this converter.- Returns:
- the color for this converter.
-
setViewer
@Deprecated default void setViewer(RequestRepaint viewer)
Deprecated.Deprecated: Use "setupChangeListeners().add( s -> viewer.requestRepaint() )" instead.Set the
RequestRepaintthat should be notified ifConverterSetupsettings change.- Parameters:
viewer-
-
-