Package org.geotools.styling
Class ChannelSelectionImpl
- Object
-
- ChannelSelectionImpl
-
- All Implemented Interfaces:
ChannelSelection
public class ChannelSelectionImpl extends Object implements ChannelSelection
ChannelSelectionImpl- Author:
- iant
-
-
Constructor Summary
Constructors Constructor Description ChannelSelectionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StyleVisitor visitor)
void
accept(TraversingStyleVisitor visitor)
Object
accept(TraversingStyleVisitor visitor, Object data)
calls the visit method of a StyleVisitorboolean
equals(Object obj)
SelectedChannelType
getGrayChannel()
Get the gray channel to be usedSelectedChannelType[]
getRGBChannels()
Retrieves the RGB channel that were selected.int
hashCode()
void
setGrayChannel(SelectedChannelType gray)
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
-
-
-
Method Detail
-
getGrayChannel
public SelectedChannelType getGrayChannel()
Description copied from interface:ChannelSelection
Get the gray channel to be used- Specified by:
getGrayChannel
in interfaceChannelSelection
- Returns:
- the gray channel
-
getRGBChannels
public SelectedChannelType[] 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
public void setGrayChannel(SelectedChannelType gray)
Description copied from interface:ChannelSelection
Set the gray channel to be used- Specified by:
setGrayChannel
in interfaceChannelSelection
- Parameters:
gray
- the gray channel
-
setRGBChannels
public void setRGBChannels(SelectedChannelType... channels)
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
public Object accept(TraversingStyleVisitor visitor, Object data)
Description copied from interface:ChannelSelection
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceChannelSelection
- Parameters:
visitor
- the style visitor
-
accept
public void accept(StyleVisitor visitor)
- Specified by:
accept
in interfaceChannelSelection
-
accept
public void accept(TraversingStyleVisitor visitor)
-
-