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 voidaccept(StyleVisitor visitor)Objectaccept(TraversingStyleVisitor visitor, Object data)calls the visit method of a StyleVisitorvoidaddColorMapEntry(ColorMapEntry entry)booleanequals(Object obj)ColorMapEntry[]getColorMapEntries()ColorMapEntrygetColorMapEntry(int index)booleangetExtendedColors()FunctiongetFunction()intgetType()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 Detail
-
ColorMapImpl
public ColorMapImpl()
-
ColorMapImpl
public ColorMapImpl(Function function)
-
-
Method Detail
-
addColorMapEntry
public void addColorMapEntry(ColorMapEntry entry)
- Specified by:
addColorMapEntryin interfaceColorMap
-
getColorMapEntries
public ColorMapEntry[] getColorMapEntries()
- Specified by:
getColorMapEntriesin interfaceColorMap
-
getColorMapEntry
public ColorMapEntry getColorMapEntry(int index)
- 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
public Object accept(TraversingStyleVisitor visitor, Object data)
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
public Function getFunction()
- Specified by:
getFunctionin interfaceColorMap- Returns:
- Interpolate or Categorize function
-
accept
public void accept(StyleVisitor visitor)
-
-