Package org.geotools.brewer.color
Class ColorPalette
Object
ColorPalette
- Direct Known Subclasses:
BrewerPalette
A generic palette containing colours.
- Author:
- Cory Horner, Refractions Research Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionColor[]
Returns all coloursColor[]
getColors
(int length) int
getCount()
Returns the number of colours contained in the palette.Getter for property description.getName()
Getter for property name.void
void
setDescription
(String description) Setter for property description.void
Setter for property name.
-
Constructor Details
-
ColorPalette
public ColorPalette()
-
-
Method Details
-
getCount
public int getCount()Returns the number of colours contained in the palette.- Returns:
- int
-
getName
Getter for property name.- Returns:
- Value of property name.
-
setName
Setter for property name.- Parameters:
name
- New value of property name.
-
getDescription
Getter for property description.- Returns:
- Value of property description.
-
setDescription
Setter for property description.- Parameters:
description
- New value of property description.
-
setColors
-
getColors
-
getColors
Returns all colours- Returns:
- complete colour array
-