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 TypeMethodDescriptionvoid
accept
(StyleVisitor visitor) accept
(TraversingStyleVisitor visitor, Object data) calls the visit method of a StyleVisitorvoid
addColorMapEntry
(ColorMapEntry entry) boolean
getColorMapEntry
(int index) boolean
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)
-
Constructor Details
-
ColorMapImpl
public ColorMapImpl() -
ColorMapImpl
-
-
Method Details
-
addColorMapEntry
- Specified by:
addColorMapEntry
in interfaceColorMap
-
getColorMapEntries
- Specified by:
getColorMapEntries
in interfaceColorMap
-
getColorMapEntry
- Specified by:
getColorMapEntry
in interfaceColorMap
-
getType
public int getType()Description copied from interface:ColorMap
Type of color map; matchinges the function returned by getFunction().getName() -
setType
public void setType(int type) -
accept
Description copied from interface:ColorMap
calls the visit method of a StyleVisitor -
getExtendedColors
public boolean getExtendedColors()- Specified by:
getExtendedColors
in interfaceColorMap
-
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 interfaceColorMap
- Parameters:
extended
-true
for using 65536 colors,false
for using 256.
-
getFunction
- Specified by:
getFunction
in interfaceColorMap
- Returns:
- Interpolate or Categorize function
-
accept
-
hashCode
public int hashCode() -
equals
-