public class TLcdSLDChannelSelection extends TLcdDataObject
Modifier and Type | Field and Description |
---|---|
static String |
BLUE_CHANNEL
Blue channel
|
static String |
GRAY_CHANNEL
Grey channel
|
static String |
GREEN_CHANNEL
Green channel
|
static String |
RED_CHANNEL
Red channel
|
Constructor and Description |
---|
TLcdSLDChannelSelection()
Empty constructor
|
TLcdSLDChannelSelection(TLcdDataType aDataType)
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptChannelType(String aChannelType)
Checks whether channel type is acceptable when it is being set.
|
TLcdSLDSelectedChannel |
getBlueChannel()
Returns the value of the property that maps to the
BlueChannel element. |
TLcdSLDSelectedChannel |
getGrayChannel()
Returns the value of the property that maps to the
GrayChannel element. |
TLcdSLDSelectedChannel |
getGreenChannel()
Returns the value of the property that maps to the
GreenChannel element. |
TLcdSLDSelectedChannel |
getRedChannel()
Returns the value of the property that maps to the
RedChannel element. |
TLcdSLDSelectedChannel |
getSelectedChannel(String aChannelType)
Gets the
TLcdSLDSelectedChannel for a given channel type. |
void |
setBlueChannel(TLcdSLDSelectedChannel aValue)
Sets the value of the property that maps to the
BlueChannel element. |
void |
setGrayChannel(TLcdSLDSelectedChannel aValue)
Sets the value of the property that maps to the
GrayChannel element. |
void |
setGreenChannel(TLcdSLDSelectedChannel aValue)
Sets the value of the property that maps to the
GreenChannel element. |
void |
setRedChannel(TLcdSLDSelectedChannel aValue)
Sets the value of the property that maps to the
RedChannel element. |
void |
setSelectedChannel(String aChannelType,
TLcdSLDSelectedChannel aSelectedChannel)
Sets a
TLcdSLDSelectedChannel to this channel selection If the GREY channel is
selected , the RGB channels are deselected and vice versa. |
public static final String RED_CHANNEL
public static final String GREEN_CHANNEL
public static final String BLUE_CHANNEL
public static final String GRAY_CHANNEL
public TLcdSLDChannelSelection(TLcdDataType aDataType)
public TLcdSLDChannelSelection()
public void setSelectedChannel(String aChannelType, TLcdSLDSelectedChannel aSelectedChannel)
TLcdSLDSelectedChannel
to this channel selection If the GREY channel is
selected , the RGB channels are deselected and vice versa.aSelectedChannel
- the channel to select as grey, red, green or blue channel.aChannelType
- the channel type to set. By default only RED_CHANNEL
, GREEN_CHANNEL
, BLUE_CHANNEL
and GRAY_CHANNEL
are
supported.acceptChannelType(String)
public TLcdSLDSelectedChannel getSelectedChannel(String aChannelType)
TLcdSLDSelectedChannel
for a given channel type.aChannelType
- the channel type. By default only RED_CHANNEL
, GREEN_CHANNEL
, BLUE_CHANNEL
and GRAY_CHANNEL
are
supported.null
when aChannelType
is not supported.setSelectedChannel(String, TLcdSLDSelectedChannel)
protected boolean acceptChannelType(String aChannelType)
aChannelType
- the channel type that would be set.public TLcdSLDSelectedChannel getRedChannel()
RedChannel
element.RED_CHANNEL_PROPERTY
property.public void setRedChannel(TLcdSLDSelectedChannel aValue)
RedChannel
element.aValue
- the value to set for the RED_CHANNEL_PROPERTY
property.public TLcdSLDSelectedChannel getGreenChannel()
GreenChannel
element.GREEN_CHANNEL_PROPERTY
property.public void setGreenChannel(TLcdSLDSelectedChannel aValue)
GreenChannel
element.aValue
- the value to set for the GREEN_CHANNEL_PROPERTY
property.public TLcdSLDSelectedChannel getBlueChannel()
BlueChannel
element.BLUE_CHANNEL_PROPERTY
property.public void setBlueChannel(TLcdSLDSelectedChannel aValue)
BlueChannel
element.aValue
- the value to set for the BLUE_CHANNEL_PROPERTY
property.public TLcdSLDSelectedChannel getGrayChannel()
GrayChannel
element.GRAY_CHANNEL_PROPERTY
property.public void setGrayChannel(TLcdSLDSelectedChannel aValue)
GrayChannel
element.aValue
- the value to set for the GRAY_CHANNEL_PROPERTY
property.