Package com.luciad.ogc.sld.model
Class TLcdSLDColorMap
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.TLcdSLDColorMap
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
A "ColorMap" defines either the colors of a palette-type raster
source or the mapping of numeric pixel values to colors.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.TLcdSLDColorMap(TLcdDataType aDataType) Empty constructor.TLcdSLDColorMap(TLcdSLDColorMapEntry[] aColorMapEntries) Constructor for given color map entries. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColorMapEntry(TLcdSLDColorMapEntry aColorMapEntry) Adds a color map entry.Returns the value of the property that maps to theColorMapEntryelement.getColorMapEntry(int aIndex) Returns the color map entry at the given index.intGets the number of color map entries.voidremoveColorMapEntry(TLcdSLDColorMapEntry aColorMapEntry) Removes a color map entry.
-
Constructor Details
-
TLcdSLDColorMap
public TLcdSLDColorMap()Empty constructor. -
TLcdSLDColorMap
Constructor for given color map entries.- Parameters:
aColorMapEntries- the color map entries.
-
TLcdSLDColorMap
Empty constructor.
-
-
Method Details
-
getColorMapEntryCount
public int getColorMapEntryCount()Gets the number of color map entries.- Returns:
- the number of color map entries.
-
getColorMapEntry
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
Adds a color map entry.- Parameters:
aColorMapEntry- the color map entry to be added.
-
removeColorMapEntry
Removes a color map entry.- Parameters:
aColorMapEntry- the color map entry to be removed.
-
getColorMapEntry
Returns the value of the property that maps to theColorMapEntryelement.- Returns:
- the value of the
COLOR_MAP_ENTRY_PROPERTYproperty.
-