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
ConstructorDescriptionEmpty constructor.TLcdSLDColorMap
(TLcdDataType aDataType) Empty constructor.TLcdSLDColorMap
(TLcdSLDColorMapEntry[] aColorMapEntries) Constructor for given color map entries. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColorMapEntry
(TLcdSLDColorMapEntry aColorMapEntry) Adds a color map entry.Returns the value of the property that maps to theColorMapEntry
element.getColorMapEntry
(int aIndex) Returns the color map entry at the given index.int
Gets the number of color map entries.void
removeColorMapEntry
(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 theColorMapEntry
element.- Returns:
- the value of the
COLOR_MAP_ENTRY_PROPERTY
property.
-