org.geotools.brewer.color
Class ColorPalette

java.lang.Object
  extended byorg.geotools.brewer.color.ColorPalette
Direct Known Subclasses:
BrewerPalette

public class ColorPalette
extends java.lang.Object

A generic palette containing colours.

Author:
Cory Horner, Refractions Research Inc.

Constructor Summary
ColorPalette()
           
 
Method Summary
 java.awt.Color[] getColors()
          Returns all colours
 java.awt.Color[] getColors(int length)
           
 int getCount()
          Returns the number of colours contained in the palette.
 java.lang.String getDescription()
          Getter for property description.
 java.lang.String getName()
          Getter for property name.
 void setColors(java.awt.Color[] colors)
           
 void setDescription(java.lang.String description)
          Setter for property description.
 void setName(java.lang.String name)
          Setter for property name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorPalette

public ColorPalette()
Method Detail

getCount

public int getCount()
Returns the number of colours contained in the palette.

Returns:
int

getName

public java.lang.String getName()
Getter for property name.

Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

getDescription

public java.lang.String getDescription()
Getter for property description.

Returns:
Value of property description.

setDescription

public void setDescription(java.lang.String description)
Setter for property description.

Parameters:
description - New value of property description.

setColors

public void setColors(java.awt.Color[] colors)

getColors

public java.awt.Color[] getColors(int length)

getColors

public java.awt.Color[] getColors()
Returns all colours

Returns:
complete colour array


Copyright © GeoTools. All Rights Reserved.