public interface ColorMap extends ColorMap
<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.
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_INTERVALS |
static int |
TYPE_RAMP |
static int |
TYPE_VALUES |
Modifier and Type | Method and Description |
---|---|
void |
accept(StyleVisitor visitor) |
void |
addColorMapEntry(ColorMapEntry entry) |
ColorMapEntry[] |
getColorMapEntries() |
ColorMapEntry |
getColorMapEntry(int i) |
boolean |
getExtendedColors() |
int |
getType()
Type of color map; matchinges the function returned by getFunction().getName()
|
void |
setExtendedColors(boolean extended)
Tells me to use 65536 colors even if 256 could suffice.
|
void |
setType(int type) |
accept, getFunction
static final int TYPE_RAMP
static final int TYPE_INTERVALS
static final int TYPE_VALUES
void addColorMapEntry(ColorMapEntry entry)
ColorMapEntry[] getColorMapEntries()
ColorMapEntry getColorMapEntry(int i)
int getType()
void setType(int type)
type
- One of TYPE_RAMP, TYPE_INTERVALS, or TYPE_VALUEvoid accept(StyleVisitor visitor)
void setExtendedColors(boolean extended)
extended
- true
for using 65536 colors, false
for using 256.boolean getExtendedColors()
Copyright © 1996–2019 Geotools. All rights reserved.