org.geotools.styling
Class ColorMapImpl

Object
  extended by ColorMapImpl
All Implemented Interfaces:
ColorMap

public class ColorMapImpl
extends Object
implements ColorMap

A simple implementation of the color map interface.

Author:
iant, aaime
Module:

Field Summary
 
Fields inherited from interface ColorMap
TYPE_INTERVALS, TYPE_RAMP, TYPE_VALUES
 
Constructor Summary
ColorMapImpl()
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 void addColorMapEntry(ColorMapEntry entry)
           
 ColorMapEntry[] getColorMapEntries()
           
 ColorMapEntry getColorMapEntry(int index)
           
 boolean getExtendedColors()
           
 int getType()
           
 void setExtendedColors(boolean extended)
          Tells me to use 65536 colors even if 256 could suffice.
 void setType(int type)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorMapImpl

public ColorMapImpl()
Method Detail

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.