Package org.geotools.styling
Class ColorMapImpl
Object
ColorMapImpl
- All Implemented Interfaces:
ColorMap
A simple implementation of the color map interface.
- Author:
- iant, aaime
-
Field Summary
Fields inherited from interface ColorMap
TYPE_INTERVALS, TYPE_RAMP, TYPE_VALUES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(StyleVisitor visitor) accept(TraversingStyleVisitor visitor, Object data) calls the visit method of a StyleVisitorvoidaddColorMapEntry(ColorMapEntry entry) booleangetColorMapEntry(int index) booleanintgetType()Type of color map; matchinges the function returned by getFunction().getName()inthashCode()voidsetExtendedColors(boolean extended) Tells me to use 65536 colors even if 256 could suffice.voidsetType(int type)
-
Constructor Details
-
ColorMapImpl
public ColorMapImpl() -
ColorMapImpl
-
-
Method Details
-
addColorMapEntry
- Specified by:
addColorMapEntryin interfaceColorMap
-
getColorMapEntries
- Specified by:
getColorMapEntriesin interfaceColorMap
-
getColorMapEntry
- Specified by:
getColorMapEntryin interfaceColorMap
-
getType
public int getType()Description copied from interface:ColorMapType of color map; matchinges the function returned by getFunction().getName() -
setType
public void setType(int type) -
accept
Description copied from interface:ColorMapcalls the visit method of a StyleVisitor -
getExtendedColors
public boolean getExtendedColors()- Specified by:
getExtendedColorsin interfaceColorMap
-
setExtendedColors
public void setExtendedColors(boolean extended) Description copied from interface:ColorMapTells me to use 65536 colors even if 256 could suffice.- Specified by:
setExtendedColorsin interfaceColorMap- Parameters:
extended-truefor using 65536 colors,falsefor using 256.
-
getFunction
- Specified by:
getFunctionin interfaceColorMap- Returns:
- Interpolate or Categorize function
-
accept
-
hashCode
public int hashCode() -
equals
-