Package org.geotools.styling
Class ColorMapImpl
- Object
-
- ColorMapImpl
-
-
Field Summary
-
Fields inherited from interface ColorMap
TYPE_INTERVALS, TYPE_RAMP, TYPE_VALUES
-
-
Constructor Summary
Constructors Constructor Description ColorMapImpl()
ColorMapImpl(Function function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StyleVisitor visitor)
Object
accept(TraversingStyleVisitor visitor, Object data)
calls the visit method of a StyleVisitorvoid
addColorMapEntry(ColorMapEntry entry)
boolean
equals(Object obj)
ColorMapEntry[]
getColorMapEntries()
ColorMapEntry
getColorMapEntry(int index)
boolean
getExtendedColors()
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)
-
-
-
Constructor Detail
-
ColorMapImpl
public ColorMapImpl()
-
ColorMapImpl
public ColorMapImpl(Function function)
-
-
Method Detail
-
addColorMapEntry
public void addColorMapEntry(ColorMapEntry entry)
- Specified by:
addColorMapEntry
in interfaceColorMap
-
getColorMapEntries
public ColorMapEntry[] getColorMapEntries()
- Specified by:
getColorMapEntries
in interfaceColorMap
-
getColorMapEntry
public ColorMapEntry getColorMapEntry(int index)
- 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
public Object accept(TraversingStyleVisitor visitor, Object data)
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
public Function getFunction()
- Specified by:
getFunction
in interfaceColorMap
- Returns:
- Interpolate or Categorize function
-
accept
public void accept(StyleVisitor visitor)
-
-