public class BrewerPalette extends ColorPalette
Constructor and Description |
---|
BrewerPalette()
Creates a new instance of BrewerPalette
|
Modifier and Type | Method and Description |
---|---|
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.
|
getColors, getCount, getDescription, getName, setColors, setDescription, setName
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)
Copyright © 1996–2023 Geotools. All rights reserved.