org.geotools.styling
Class ColorMapImpl
Object
ColorMapImpl
- All Implemented Interfaces:
- ColorMap
public class ColorMapImpl
- extends Object
- implements ColorMap
A simple implementation of the color map interface.
- Author:
- iant, aaime
- Module:
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorMapImpl
public ColorMapImpl()
addColorMapEntry
public void addColorMapEntry(ColorMapEntry entry)
- Specified by:
addColorMapEntry
in interface ColorMap
getColorMapEntries
public ColorMapEntry[] getColorMapEntries()
- Specified by:
getColorMapEntries
in interface ColorMap
getColorMapEntry
public ColorMapEntry getColorMapEntry(int index)
- Specified by:
getColorMapEntry
in interface ColorMap
getType
public int getType()
- Specified by:
getType
in interface ColorMap
- See Also:
ColorMap.getType()
setType
public void setType(int type)
- Specified by:
setType
in interface ColorMap
- See Also:
ColorMap.setType(int)
accept
public void accept(StyleVisitor visitor)
- Specified by:
accept
in interface ColorMap
getExtendedColors
public boolean getExtendedColors()
- Specified by:
getExtendedColors
in interface ColorMap
setExtendedColors
public void setExtendedColors(boolean extended)
- Description copied from interface:
ColorMap
- Tells me to use 65536 colors even if 256 could suffice.
- Specified by:
setExtendedColors
in interface ColorMap
- Parameters:
extended
- true
for using 65536 colors, false
for using 256.
Copyright © 1996-2009 Geotools. All Rights Reserved.