Interface ChannelDisplaySettings.Builder
- Enclosing interface:
ChannelDisplaySettings
public static interface ChannelDisplaySettings.Builder
Builder for ChannelDisplaySettings.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()colorColorBlindFriendly(int number) colorRed()component(int component) component(int component, ComponentDisplaySettings settings) default ChannelDisplaySettings.BuilderfloatHistoRange(double min, double max) Sets the histogram axis range for floating point images, as pixel values.default ChannelDisplaySettings.BuilderfloatHistoRangePinned(boolean pinned) Marks the float histogram axis as chosen by the user.getComponentSettings(int component) inthide()histoRangeBits(int bits) Sets the intensity scaling (min/max) for all components of this channel in one call.show()uniformComponentScaling(boolean enable) useCameraHistoRange(boolean use) visible(boolean visible)
-
Method Details
-
color
-
colorWhite
ChannelDisplaySettings.Builder colorWhite() -
colorColorBlindFriendly
-
colorRed
ChannelDisplaySettings.Builder colorRed() -
colorGreen
ChannelDisplaySettings.Builder colorGreen() -
colorBlue
ChannelDisplaySettings.Builder colorBlue() -
colorCyan
ChannelDisplaySettings.Builder colorCyan() -
colorMagenta
ChannelDisplaySettings.Builder colorMagenta() -
colorYellow
ChannelDisplaySettings.Builder colorYellow() -
uniformComponentScaling
-
histoRangeBits
-
useCameraHistoRange
-
floatHistoRange
Sets the histogram axis range for floating point images, as pixel values.Only meaningful for float images, whose axis is a real value range rather than a bit depth. Pass
Double.NaNfor both to clear it.The default implementation ignores the values, so that builders written before the float axis existed keep compiling; they simply carry no axis range.
- Parameters:
min- low end of the axismax- high end of the axis- Returns:
- this builder
-
floatHistoRangePinned
Marks the float histogram axis as chosen by the user.When set, the axis is left exactly as given instead of being widened to take in each newly displayed image.
- Parameters:
pinned- true to stop the axis adapting to the data- Returns:
- this builder
-
name
-
groupName
-
visible
-
show
-
hide
-
component
-
component
-
intensityScaling
Sets the intensity scaling (min/max) for all components of this channel in one call.This is a convenience alternative to calling
component(int, ComponentDisplaySettings)once per component. Only min and max are transferred; any gamma values already set on existing component settings are preserved.- Parameters:
ranges- per-component intensity ranges for this channel- Returns:
- this builder
-
getNumberOfComponents
int getNumberOfComponents() -
getComponentSettings
-
build
ChannelDisplaySettings build()
-