dsto.dfc.swing.controls
Class ColorScheme

java.lang.Object
  extended by dsto.dfc.swing.controls.ColorScheme

public class ColorScheme
extends Object

This class contains an List of colors, and its associated name.

Version:
$Revision$
Author:
Luke Marsh
See Also:
ColorSchemePanel, ColorChooserPanel, ColorChooserCombo

Field Summary
static ColorScheme AQUAMARINE
           
static List AQUAMARINE_COLORS
           
static List AQUAMARINE_COLORS_NAMES
           
static ColorScheme CHRISTMAS
           
static List CHRISTMAS_COLORS
           
static List CHRISTMAS_COLORS_NAMES
           
static ColorScheme CONTINENT
           
static List CONTINENT_COLORS
           
static List CONTINENT_COLORS_NAMES
           
static ColorScheme DARK
           
static List DARK_COLORS
           
static List DARK_COLORS_NAMES
           
static List DEFAULT_SCHEMES
           
static ColorScheme GARDEN
           
static List GARDEN_COLORS
           
static List GARDEN_COLORS_NAMES
           
static ColorScheme METALLIC
           
static List METALLIC_COLORS
           
static List METALLIC_COLORS_NAMES
           
static ColorScheme MOUNTAIN
           
static List MOUNTAIN_COLORS
           
static List MOUNTAIN_COLORS_NAMES
           
static List PASTEL_COLORS
           
static List PASTEL_COLORS_NAMES
           
static ColorScheme PASTELS
           
static ColorScheme PRIMARY
           
static List PRIMARY_COLORS
           
static List PRIMARY_COLORS_NAMES
           
static ColorScheme YELLOWTOORANGE
           
static List YELLOWTOORANGE_COLORS
           
static List YELLOWTOORANGE_COLORS_NAMES
           
 
Constructor Summary
ColorScheme()
          Initializes parameters.
ColorScheme(String n, List c, List cNames)
          Takes two arguments to intialize the global variables.
 
Method Summary
 List getColorNames()
          Returns the List of Color Names.
 List getColors()
          Returns the List of Colors.
 String getName()
          Returns the name of the List.
static String getNameColor(Color color)
          Returns the name of a specific color or its RGB value if it doesn't exist.
 void setColorNames(List cNames)
          Takes an List of Strings cNames and sets it to the ColorNames List.
 void setColors(List c)
          Takes an List of Color c and sets it to the Color List colors.
 void setName(String n)
          Takes the String n as a parameter and sets it to the name String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASTEL_COLORS

public static final List PASTEL_COLORS

PASTEL_COLORS_NAMES

public static final List PASTEL_COLORS_NAMES

METALLIC_COLORS

public static final List METALLIC_COLORS

METALLIC_COLORS_NAMES

public static final List METALLIC_COLORS_NAMES

PRIMARY_COLORS

public static final List PRIMARY_COLORS

PRIMARY_COLORS_NAMES

public static final List PRIMARY_COLORS_NAMES

AQUAMARINE_COLORS

public static final List AQUAMARINE_COLORS

AQUAMARINE_COLORS_NAMES

public static final List AQUAMARINE_COLORS_NAMES

DARK_COLORS

public static final List DARK_COLORS

DARK_COLORS_NAMES

public static final List DARK_COLORS_NAMES

MOUNTAIN_COLORS

public static final List MOUNTAIN_COLORS

MOUNTAIN_COLORS_NAMES

public static final List MOUNTAIN_COLORS_NAMES

CONTINENT_COLORS

public static final List CONTINENT_COLORS

CONTINENT_COLORS_NAMES

public static final List CONTINENT_COLORS_NAMES

GARDEN_COLORS

public static final List GARDEN_COLORS

GARDEN_COLORS_NAMES

public static final List GARDEN_COLORS_NAMES

YELLOWTOORANGE_COLORS

public static final List YELLOWTOORANGE_COLORS

YELLOWTOORANGE_COLORS_NAMES

public static final List YELLOWTOORANGE_COLORS_NAMES

CHRISTMAS_COLORS

public static final List CHRISTMAS_COLORS

CHRISTMAS_COLORS_NAMES

public static final List CHRISTMAS_COLORS_NAMES

PASTELS

public static final ColorScheme PASTELS

METALLIC

public static final ColorScheme METALLIC

PRIMARY

public static final ColorScheme PRIMARY

AQUAMARINE

public static final ColorScheme AQUAMARINE

DARK

public static final ColorScheme DARK

MOUNTAIN

public static final ColorScheme MOUNTAIN

CONTINENT

public static final ColorScheme CONTINENT

GARDEN

public static final ColorScheme GARDEN

YELLOWTOORANGE

public static final ColorScheme YELLOWTOORANGE

CHRISTMAS

public static final ColorScheme CHRISTMAS

DEFAULT_SCHEMES

public static final List DEFAULT_SCHEMES
Constructor Detail

ColorScheme

public ColorScheme()
Initializes parameters. The Color List is set to a size of 500 in this default constructor.


ColorScheme

public ColorScheme(String n,
                   List c,
                   List cNames)
Takes two arguments to intialize the global variables.

Method Detail

getName

public String getName()
Returns the name of the List.


getColors

public List getColors()
Returns the List of Colors.


getColorNames

public List getColorNames()
Returns the List of Color Names.


setName

public void setName(String n)
Takes the String n as a parameter and sets it to the name String.


setColors

public void setColors(List c)
Takes an List of Color c and sets it to the Color List colors.


setColorNames

public void setColorNames(List cNames)
Takes an List of Strings cNames and sets it to the ColorNames List.


getNameColor

public static String getNameColor(Color color)
Returns the name of a specific color or its RGB value if it doesn't exist.



Copyright © 2008 Commonwealth of Australia