public class ChannelSelectionImpl extends Object implements ChannelSelection
Constructor and Description |
---|
ChannelSelectionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(StyleVisitor visitor) |
void |
accept(StyleVisitor visitor) |
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor
|
boolean |
equals(Object obj) |
SelectedChannelType |
getGrayChannel()
Get the gray channel to be used
|
SelectedChannelType[] |
getRGBChannels()
Retrieves the RGB channel that were selected.
|
int |
hashCode() |
void |
setGrayChannel(SelectedChannelType gray)
Set the gray channel to be used
|
void |
setGrayChannel(SelectedChannelType gray) |
void |
setRGBChannels(SelectedChannelType[] channels)
Set the RGB channels to be used
|
void |
setRGBChannels(SelectedChannelType red,
SelectedChannelType green,
SelectedChannelType blue)
Set the RGB channels to be used
|
void |
setRGBChannels(SelectedChannelType red,
SelectedChannelType green,
SelectedChannelType blue) |
public SelectedChannelType getGrayChannel()
ChannelSelection
getGrayChannel
in interface ChannelSelection
public SelectedChannelType[] getRGBChannels()
Note that in case there is no RGB selection the returned SelectedChannelType
array will contain null elements.
getRGBChannels
in interface ChannelSelection
SelectedChannelType
array that contains the SelectedChannelType
elements for the RGB channels.public void setGrayChannel(SelectedChannelType gray)
ChannelSelection
gray
- the gray channelpublic void setGrayChannel(SelectedChannelType gray)
public void setRGBChannels(SelectedChannelType[] channels)
ChannelSelection
channels
- array of channels in RGB orderpublic void setRGBChannels(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
ChannelSelection
red
- the red channelgreen
- the green channelblue
- the blue channelpublic void setRGBChannels(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
public Object accept(StyleVisitor visitor, Object data)
ChannelSelection
accept
in interface ChannelSelection
visitor
- the style visitorpublic void accept(StyleVisitor visitor)
public void accept(StyleVisitor visitor)
Copyright © 1996–2023 Geotools. All rights reserved.