|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectColorPalette
public class ColorPalette
A generic palette containing colours.
Constructor Summary | |
---|---|
ColorPalette()
|
Method Summary | |
---|---|
Color[] |
getColors()
Returns all colours |
Color[] |
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorPalette()
Method Detail |
---|
public int getCount()
public String getName()
public void setName(String name)
name
- New value of property name.public String getDescription()
public void setDescription(String description)
description
- New value of property description.public void setColors(Color[] colors)
public Color[] getColors(int length)
public Color[] getColors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |