Package org.geotools.styling
Class ChannelSelectionImpl
Object
ChannelSelectionImpl
- All Implemented Interfaces:
ChannelSelection
ChannelSelectionImpl
- Author:
- iant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(StyleVisitor visitor) void
accept
(TraversingStyleVisitor visitor) accept
(TraversingStyleVisitor visitor, Object data) calls the visit method of a StyleVisitorboolean
Get the gray channel to be usedRetrieves the RGB channel that were selected.int
hashCode()
void
Set the gray channel to be usedvoid
setRGBChannels
(SelectedChannelType... channels) Set the RGB channels to be usedvoid
setRGBChannels
(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:ChannelSelection
Get the gray channel to be used- Specified by:
getGrayChannel
in interfaceChannelSelection
- Returns:
- the gray channel
-
getRGBChannels
Retrieves the RGB channel that were selected.Note that in case there is no RGB selection the returned
SelectedChannelType
array will contain null elements.- Specified by:
getRGBChannels
in interfaceChannelSelection
- Returns:
SelectedChannelType
array that contains theSelectedChannelType
elements for the RGB channels.
-
setGrayChannel
Description copied from interface:ChannelSelection
Set the gray channel to be used- Specified by:
setGrayChannel
in interfaceChannelSelection
- Parameters:
gray
- the gray channel
-
setRGBChannels
Description copied from interface:ChannelSelection
Set the RGB channels to be used- Specified by:
setRGBChannels
in interfaceChannelSelection
- Parameters:
channels
- array of channels in RGB order
-
setRGBChannels
public void setRGBChannels(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue) Description copied from interface:ChannelSelection
Set the RGB channels to be used- Specified by:
setRGBChannels
in interfaceChannelSelection
- Parameters:
red
- the red channelgreen
- the green channelblue
- the blue channel
-
accept
Description copied from interface:ChannelSelection
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceChannelSelection
- Parameters:
visitor
- the style visitor
-
accept
- Specified by:
accept
in interfaceChannelSelection
-
accept
-
hashCode
public int hashCode() -
equals
-