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