Package org.geotools.brewer.color
Class BrewerPalette
Object
ColorPalette
BrewerPalette
A ColorPalette with additional ColorBrewer information (suitability data and colour selection).
- Author:
 - James Macgill, Cory Horner, Refractions Research Inc.
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetColor(int index, int length) Color[]getColors(int length) Obtains a set of colours from the palette.intGetter for the colour countintGetter for the colour countgetType()Getter for property type.voidsetColorScheme(SampleScheme scheme) voidsetPaletteSuitability(PaletteSuitability suitability) voidsetType(PaletteType type) Sets the type of palette.Methods inherited from class ColorPalette
getColors, getCount, getDescription, getName, setColors, setDescription, setName 
- 
Constructor Details
- 
BrewerPalette
public BrewerPalette()Creates a new instance of BrewerPalette 
 - 
 - 
Method Details
- 
getType
Getter for property type.- Returns:
 - Value of property type.
 
 - 
setType
Sets the type of palette.- Parameters:
 type- new palette type
 - 
getColor
 - 
getMaxColors
public int getMaxColors()Getter for the colour count- Returns:
 - the most colours this palette currently supports
 
 - 
getMinColors
public int getMinColors()Getter for the colour count- Returns:
 - the minimum number of colours this palette currently supports
 
 - 
getColors
Obtains a set of colours from the palette.- Overrides:
 getColorsin classColorPalette
 - 
getPaletteSuitability
 - 
setPaletteSuitability
 - 
getColorScheme
 - 
setColorScheme
 
 -