org.geotools.styling
Class ColorMapImpl

java.lang.Object
  extended by org.geotools.styling.ColorMapImpl
All Implemented Interfaces:
org.opengis.style.ColorMap

public class ColorMapImpl
extends java.lang.Object
implements ColorMap

A simple implementation of the color map interface.

Author:
iant, aaime

Field Summary
 
Fields inherited from interface org.geotools.styling.ColorMap
TYPE_INTERVALS, TYPE_RAMP, TYPE_VALUES
 
Constructor Summary
ColorMapImpl()
           
ColorMapImpl(org.opengis.filter.expression.Function function)
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 java.lang.Object accept(org.opengis.style.StyleVisitor visitor, java.lang.Object data)
           
 void addColorMapEntry(ColorMapEntry entry)
           
 boolean equals(java.lang.Object obj)
           
 ColorMapEntry[] getColorMapEntries()
           
 ColorMapEntry getColorMapEntry(int index)
           
 boolean getExtendedColors()
           
 org.opengis.filter.expression.Function getFunction()
           
 int getType()
          Type of color map; matchinges the function returned by getFunction().getName()
 int hashCode()
           
 void setExtendedColors(boolean extended)
          Tells me to use 65536 colors even if 256 could suffice.
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorMapImpl

public ColorMapImpl()

ColorMapImpl

public ColorMapImpl(org.opengis.filter.expression.Function function)
Method Detail

addColorMapEntry

public void addColorMapEntry(ColorMapEntry entry)

getColorMapEntries

public ColorMapEntry[] getColorMapEntries()

getColorMapEntry

public ColorMapEntry getColorMapEntry(int index)

getType

public int getType()
Description copied from interface: ColorMap
Type of color map; matchinges the function returned by getFunction().getName()

Returns:
One of TYPE_RAMP, TYPE_INTERVALS, or TYPE_VALUE
See Also:
ColorMap.getType()

setType

public void setType(int type)
Parameters:
type - One of TYPE_RAMP, TYPE_INTERVALS, or TYPE_VALUE
See Also:
ColorMap.setType(int)

accept

public java.lang.Object accept(org.opengis.style.StyleVisitor visitor,
                               java.lang.Object data)
Specified by:
accept in interface org.opengis.style.ColorMap

getExtendedColors

public boolean getExtendedColors()

setExtendedColors

public void setExtendedColors(boolean extended)
Description copied from interface: ColorMap
Tells me to use 65536 colors even if 256 could suffice.

Parameters:
extended - true for using 65536 colors, false for using 256.

getFunction

public org.opengis.filter.expression.Function getFunction()
Specified by:
getFunction in interface org.opengis.style.ColorMap

accept

public void accept(StyleVisitor visitor)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.