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 voidaccept(StyleVisitor visitor)voidaccept(TraversingStyleVisitor visitor)Objectaccept(TraversingStyleVisitor visitor, Object data)calls the visit method of a StyleVisitorbooleanequals(Object obj)SelectedChannelTypegetGrayChannel()Get the gray channel to be usedSelectedChannelType[]getRGBChannels()Retrieves the RGB channel that were selected.inthashCode()voidsetGrayChannel(SelectedChannelType gray)Set 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
-
-
-
Method Detail
-
getGrayChannel
public SelectedChannelType getGrayChannel()
Description copied from interface:ChannelSelectionGet the gray channel to be used- Specified by:
getGrayChannelin 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
SelectedChannelTypearray will contain null elements.- Specified by:
getRGBChannelsin interfaceChannelSelection- Returns:
SelectedChannelTypearray that contains theSelectedChannelTypeelements for the RGB channels.
-
setGrayChannel
public void setGrayChannel(SelectedChannelType gray)
Description copied from interface:ChannelSelectionSet the gray channel to be used- Specified by:
setGrayChannelin interfaceChannelSelection- Parameters:
gray- the gray channel
-
setRGBChannels
public void setRGBChannels(SelectedChannelType... channels)
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
public Object accept(TraversingStyleVisitor visitor, Object data)
Description copied from interface:ChannelSelectioncalls the visit method of a StyleVisitor- Specified by:
acceptin interfaceChannelSelection- Parameters:
visitor- the style visitor
-
accept
public void accept(StyleVisitor visitor)
- Specified by:
acceptin interfaceChannelSelection
-
accept
public void accept(TraversingStyleVisitor visitor)
-
-