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.
|
SelectedChannelType[] |
getSelectedChannels()
get the channels to be used
|
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) |
void |
setSelectedChannels(SelectedChannelType[] channels)
set the channels to be used
|
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 SelectedChannelType[] getSelectedChannels()
ChannelSelection
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 void setSelectedChannels(SelectedChannelType[] channels)
ChannelSelection
channels
- array of channelspublic 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–2019 Geotools. All rights reserved.