Interface DisplayIntensityRanges.Builder
- Enclosing interface:
DisplayIntensityRanges
public static interface DisplayIntensityRanges.Builder
Builder for
DisplayIntensityRanges.
Obtain an instance via DisplayIntensityRanges.builder() or
DisplayIntensityRanges.copyBuilder().
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns theDisplayIntensityRanges.channelRanges(List<ChannelIntensityRanges> channelRanges) Replaces all channel ranges with the given list.componentMaximum(int channel, int component, long max) Sets only the maximum (white point) for a specific channel and component.componentMinimum(int channel, int component, long min) Sets only the minimum (black point) for a specific channel and component.componentRange(int channel, int component, long min, long max) Sets the range for a specific channel and component by explicit min/max values.componentRange(int channel, int component, ComponentIntensityRange range) Sets the range for a specific channel and component from aComponentIntensityRange.componentRanges(int channel, List<ComponentIntensityRange> ranges) Replaces all component ranges for the given channel with the given list.
-
Method Details
-
componentRange
Sets the range for a specific channel and component by explicit min/max values.- Parameters:
channel- zero-based channel indexcomponent- zero-based component index (e.g. 0=red, 1=green, 2=blue for RGB)min- black pointmax- white point (Long.MAX_VALUE= full camera range)- Returns:
- this builder
-
componentRange
DisplayIntensityRanges.Builder componentRange(int channel, int component, ComponentIntensityRange range) Sets the range for a specific channel and component from aComponentIntensityRange.- Parameters:
channel- zero-based channel indexcomponent- zero-based component indexrange- range to copy min/max from- Returns:
- this builder
-
componentMinimum
Sets only the minimum (black point) for a specific channel and component.- Parameters:
channel- zero-based channel indexcomponent- zero-based component indexmin- black point- Returns:
- this builder
-
componentMaximum
Sets only the maximum (white point) for a specific channel and component.- Parameters:
channel- zero-based channel indexcomponent- zero-based component indexmax- white point (Long.MAX_VALUE= full camera range)- Returns:
- this builder
-
componentRanges
Replaces all component ranges for the given channel with the given list.- Parameters:
channel- zero-based channel indexranges- list of ranges, one per component; index 0 is the first component- Returns:
- this builder
-
channelRanges
Replaces all channel ranges with the given list.- Parameters:
channelRanges- list ofChannelIntensityRanges, one per channel- Returns:
- this builder
-
build
DisplayIntensityRanges build()Builds and returns theDisplayIntensityRanges.- Returns:
- immutable
DisplayIntensityRanges
-