Package org.geotools.styling
Class ChannelSelectionImpl
Object
ChannelSelectionImpl
- All Implemented Interfaces:
ChannelSelection
ChannelSelectionImpl
- Author:
- iant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(StyleVisitor visitor) voidaccept(TraversingStyleVisitor visitor) accept(TraversingStyleVisitor visitor, Object data) calls the visit method of a StyleVisitorbooleanGet the gray channel to be usedRetrieves the RGB channel that were selected.inthashCode()voidSet the gray channel to be usedvoidsetRGBChannels(SelectedChannelType... channels) Set the RGB channels to be usedvoidsetRGBChannels(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue) Set the RGB channels to be used
-
Constructor Details
-
ChannelSelectionImpl
public ChannelSelectionImpl()
-
-
Method Details
-
getGrayChannel
Description copied from interface:ChannelSelectionGet the gray channel to be used- Specified by:
getGrayChannelin interfaceChannelSelection- Returns:
- the gray channel
-
getRGBChannels
Retrieves the RGB channel that were selected.Note that in case there is no RGB selection the returned
SelectedChannelTypearray will contain null elements.- Specified by:
getRGBChannelsin interfaceChannelSelection- Returns:
SelectedChannelTypearray that contains theSelectedChannelTypeelements for the RGB channels.
-
setGrayChannel
Description copied from interface:ChannelSelectionSet the gray channel to be used- Specified by:
setGrayChannelin interfaceChannelSelection- Parameters:
gray- the gray channel
-
setRGBChannels
Description copied from interface:ChannelSelectionSet the RGB channels to be used- Specified by:
setRGBChannelsin interfaceChannelSelection- Parameters:
channels- array of channels in RGB order
-
setRGBChannels
public void setRGBChannels(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue) Description copied from interface:ChannelSelectionSet the RGB channels to be used- Specified by:
setRGBChannelsin interfaceChannelSelection- Parameters:
red- the red channelgreen- the green channelblue- the blue channel
-
accept
Description copied from interface:ChannelSelectioncalls the visit method of a StyleVisitor- Specified by:
acceptin interfaceChannelSelection- Parameters:
visitor- the style visitor
-
accept
- Specified by:
acceptin interfaceChannelSelection
-
accept
-
hashCode
public int hashCode() -
equals
-