Class TLcdSLDColorMap

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

public class TLcdSLDColorMap extends TLcdDataObject
A "ColorMap" defines either the colors of a palette-type raster source or the mapping of numeric pixel values to colors.
  • Constructor Details

    • TLcdSLDColorMap

      public TLcdSLDColorMap()
      Empty constructor.
    • TLcdSLDColorMap

      public TLcdSLDColorMap(TLcdSLDColorMapEntry[] aColorMapEntries)
      Constructor for given color map entries.
      Parameters:
      aColorMapEntries - the color map entries.
    • TLcdSLDColorMap

      public TLcdSLDColorMap(TLcdDataType aDataType)
      Empty constructor.
  • Method Details

    • getColorMapEntryCount

      public int getColorMapEntryCount()
      Gets the number of color map entries.
      Returns:
      the number of color map entries.
    • getColorMapEntry

      public TLcdSLDColorMapEntry getColorMapEntry(int aIndex)
      Returns the color map entry at the given index.
      Parameters:
      aIndex - the index of the given position.
      Returns:
      the color map entry at the given index.
    • addColorMapEntry

      public void addColorMapEntry(TLcdSLDColorMapEntry aColorMapEntry)
      Adds a color map entry.
      Parameters:
      aColorMapEntry - the color map entry to be added.
    • removeColorMapEntry

      public void removeColorMapEntry(TLcdSLDColorMapEntry aColorMapEntry)
      Removes a color map entry.
      Parameters:
      aColorMapEntry - the color map entry to be removed.
    • getColorMapEntry

      public List<TLcdSLDColorMapEntry> getColorMapEntry()
      Returns the value of the property that maps to the ColorMapEntry element.
      Returns:
      the value of the COLOR_MAP_ENTRY_PROPERTY property.