public class ColorPaletteImpl extends Object implements ColorPalette, Comparable
XML_COLOR, XML_COLOR_PALETTE| Constructor and Description |
|---|
ColorPaletteImpl(Collection<? extends HTMLColor> inColors) |
ColorPaletteImpl(XMLTag inXMLTag) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object inObj2) |
List<HTMLColor> |
getColorValues() |
HTMLColor |
nextColor()
Returns the next color from the palette or loops back to the beginning color if all colors have been used.
|
XMLTag |
toXMLTag() |
public ColorPaletteImpl(Collection<? extends HTMLColor> inColors)
public ColorPaletteImpl(XMLTag inXMLTag)
public List<HTMLColor> getColorValues()
getColorValues in interface ColorPalettepublic HTMLColor nextColor()
nextColor in interface ColorPalettepublic int compareTo(Object inObj2)
compareTo in interface Comparable
jataylor@hairyfatguy.com