org.geotools.styling
Interface ColorMap

All Superinterfaces:
GTComponent
All Known Implementing Classes:
ColorMapImpl

public interface ColorMap
extends GTComponent

The ColorMap element defines either the colors of a palette-type raster source or the mapping of fixed-numeric pixel values to colors.

 <xs:element name="ColorMap">
   <xs:complexType>
     <xs:choice minOccurs="0" maxOccurs="unbounded">
       <xs:element ref="sld:ColorMapEntry"/>
     </xs:choice>
   </xs:complexType>
 </xs:element>
 
For example, a DEM raster giving elevations in meters above sea level can be translated to a colored image with a ColorMap. The quantity attributes of a color-map are used for translating between numeric matrixes and color rasters and the ColorMap entries should be in order of increasing numeric quantity so that intermediate numeric values can be matched to a color (or be interpolated between two colors). Labels may be used for legends or may be used in the future to match character values. Not all systems can support opacity in colormaps. The default opacity is 1.0 (fully opaque). Defaults for quantity and label are system-dependent.


Field Summary
static int TYPE_INTERVALS
           
static int TYPE_RAMP
           
static int TYPE_VALUES
           
 
Method Summary
 void addColorMapEntry(ColorMapEntry entry)
           
 ColorMapEntry[] getColorMapEntries()
           
 ColorMapEntry getColorMapEntry(int i)
           
 int getType()
           
 void setType(int type)
           
 
Methods inherited from interface org.geotools.event.GTComponent
changed, getNote, getParent, removed, setNote
 

Field Detail

TYPE_RAMP

public static final int TYPE_RAMP
See Also:
Constant Field Values

TYPE_INTERVALS

public static final int TYPE_INTERVALS
See Also:
Constant Field Values

TYPE_VALUES

public static final int TYPE_VALUES
See Also:
Constant Field Values
Method Detail

addColorMapEntry

public void addColorMapEntry(ColorMapEntry entry)

getColorMapEntries

public ColorMapEntry[] getColorMapEntries()

getColorMapEntry

public ColorMapEntry getColorMapEntry(int i)

getType

public int getType()

setType

public void setType(int type)


Copyright © GeoTools. All Rights Reserved.