echopointng.model
Interface ColorSwatchModel

All Known Implementing Classes:
WebSafeColorSwatchModel

public interface ColorSwatchModel

The ColorSwatchModel is used to generate a series of "color swatches" possibly with descriptive names.


Method Summary
 java.lang.String getColorDescription(Color color)
          This is called to return a descriptive string for a color.
 Color[] getColorSwatches()
          This is called to return an array of colors to be used as color swatches
 

Method Detail

getColorSwatches

Color[] getColorSwatches()
This is called to return an array of colors to be used as color swatches

Returns:
- an array of colors to be used as color swatches

getColorDescription

java.lang.String getColorDescription(Color color)
This is called to return a descriptive string for a color. For example the color 0x6495ED might be called "Cornflower". If there is no description for a color then simply return null.

Parameters:
color - - the color to get a description for
Returns:
a String description or null if there isnt one