|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.brewer.color.ColorPalette org.geotools.brewer.color.BrewerPalette
A ColorPalette with additional ColorBrewer information (suitability data and colour selection).
Constructor Summary | |
BrewerPalette()
Creates a new instance of BrewerPalette |
Method Summary | |
java.awt.Color |
getColor(int index,
int length)
|
java.awt.Color[] |
getColors(int length)
Obtains a set of colours from the palette. |
SampleScheme |
getColorScheme()
|
int |
getMaxColors()
Getter for the colour count |
int |
getMinColors()
Getter for the colour count |
PaletteSuitability |
getPaletteSuitability()
|
PaletteType |
getType()
Getter for property type. |
void |
setColorScheme(SampleScheme scheme)
|
void |
setPaletteSuitability(PaletteSuitability suitability)
|
void |
setType(PaletteType type)
Sets the type of palette. |
Methods inherited from class org.geotools.brewer.color.ColorPalette |
getColors, getCount, getDescription, getName, setColors, setDescription, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BrewerPalette()
Method Detail |
public PaletteType getType()
public void setType(PaletteType type)
type
- new palette typepublic java.awt.Color getColor(int index, int length)
public int getMaxColors()
public int getMinColors()
public java.awt.Color[] getColors(int length)
getColors
in class ColorPalette
public PaletteSuitability getPaletteSuitability()
public void setPaletteSuitability(PaletteSuitability suitability)
public SampleScheme getColorScheme()
public void setColorScheme(SampleScheme scheme)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |