Class TLcdSLDChannelSelection

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.TLcdSLDChannelSelection
All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdSLDChannelSelection extends TLcdDataObject
The ChannelSelection element specifies the false-color channel selection for a multi-spectral raster source (such as a multi-band satellite-imagery source). E.g. [RedChannel,GreenChannel,BlueChannel]; [GrayChannel]
  • Field Details

  • Constructor Details

    • TLcdSLDChannelSelection

      public TLcdSLDChannelSelection(TLcdDataType aDataType)
      Empty constructor
    • TLcdSLDChannelSelection

      public TLcdSLDChannelSelection()
      Empty constructor
  • Method Details

    • setSelectedChannel

      public 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.
      Parameters:
      aChannelType - the channel type to set. By default only RED_CHANNEL, GREEN_CHANNEL, BLUE_CHANNEL and GRAY_CHANNEL are supported.
      aSelectedChannel - the channel to select as grey, red, green or blue channel.
      See Also:
    • getSelectedChannel

      public TLcdSLDSelectedChannel getSelectedChannel(String aChannelType)
      Gets the TLcdSLDSelectedChannel for a given channel type.
      Parameters:
      aChannelType - the channel type. By default only RED_CHANNEL, GREEN_CHANNEL, BLUE_CHANNEL and GRAY_CHANNEL are supported.
      Returns:
      an TLcdSLDSelectedChannel, or null when aChannelType is not supported.
      See Also:
    • acceptChannelType

      protected boolean acceptChannelType(String aChannelType)
      Checks whether channel type is acceptable when it is being set. If not it will not be set.
      Parameters:
      aChannelType - the channel type that would be set.
      Returns:
      true if aChannelType is one of the following GRAY_CHANNEL, RED_CHANNEL, GREEN_CHANNEL, BLUE_CHANNEL.
    • getRedChannel

      public TLcdSLDSelectedChannel getRedChannel()
      Returns the value of the property that maps to the RedChannel element.
      Returns:
      the value of the RED_CHANNEL_PROPERTY property.
    • setRedChannel

      public void setRedChannel(TLcdSLDSelectedChannel aValue)
      Sets the value of the property that maps to the RedChannel element.
      Parameters:
      aValue - the value to set for the RED_CHANNEL_PROPERTY property.
    • getGreenChannel

      public TLcdSLDSelectedChannel getGreenChannel()
      Returns the value of the property that maps to the GreenChannel element.
      Returns:
      the value of the GREEN_CHANNEL_PROPERTY property.
    • setGreenChannel

      public void setGreenChannel(TLcdSLDSelectedChannel aValue)
      Sets the value of the property that maps to the GreenChannel element.
      Parameters:
      aValue - the value to set for the GREEN_CHANNEL_PROPERTY property.
    • getBlueChannel

      public TLcdSLDSelectedChannel getBlueChannel()
      Returns the value of the property that maps to the BlueChannel element.
      Returns:
      the value of the BLUE_CHANNEL_PROPERTY property.
    • setBlueChannel

      public void setBlueChannel(TLcdSLDSelectedChannel aValue)
      Sets the value of the property that maps to the BlueChannel element.
      Parameters:
      aValue - the value to set for the BLUE_CHANNEL_PROPERTY property.
    • getGrayChannel

      public TLcdSLDSelectedChannel getGrayChannel()
      Returns the value of the property that maps to the GrayChannel element.
      Returns:
      the value of the GRAY_CHANNEL_PROPERTY property.
    • setGrayChannel

      public void setGrayChannel(TLcdSLDSelectedChannel aValue)
      Sets the value of the property that maps to the GrayChannel element.
      Parameters:
      aValue - the value to set for the GRAY_CHANNEL_PROPERTY property.