|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectColorPalette
BrewerPalette
public class BrewerPalette
A ColorPalette with additional ColorBrewer information (suitability data and colour selection).
modules/extension/brewer (gt-brewer.jar)
Constructor Summary | |
---|---|
BrewerPalette()
Creates a new instance of BrewerPalette |
Method Summary | |
---|---|
Color |
getColor(int index,
int length)
|
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 ColorPalette |
---|
getColors, getCount, getDescription, getName, setColors, setDescription, setName |
Methods inherited from class 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 Color getColor(int index, int length)
public int getMaxColors()
public int getMinColors()
public 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 |