Class PaintSettings

java.lang.Object
  |
  +--PaintSettings
All Implemented Interfaces:
java.lang.Cloneable

public class PaintSettings
extends java.lang.Object
implements java.lang.Cloneable

The class provides an object that refers to the settings of a paint color. It presents Strings for every color defined in Color. It also adds some new colors and presents Strings for those. Then, the class simply converts between Strings and colors.


Field Summary
static java.awt.Color aqua
          Aqua.
static java.lang.String AQUA
          The color aqua.
static java.lang.String BLACK
          The color black.
static java.lang.String BLUE
          The color blue.
static java.awt.Color brown
          Brown.
static java.lang.String CYAN
          The color cyan.
static java.lang.String DARK_BLUE
          The color dark blue.
static java.lang.String DARK_GRAY
          The color dark gray.
static java.lang.String DARK_GREEN
          The color dark green.
static java.lang.String DARK_ORANGE
          The color dark orange.
static java.awt.Color darkBlue
          Dark Blue.
static java.awt.Color darkGreen
          Dark Green.
static java.awt.Color darkOrange
          Dark Orange.
static java.lang.String GHOSTLY_GRAY
          The color ghostly gray.
static java.awt.Color ghostlyGray
          Ghostly Gray.
static java.lang.String GRAY
          The color gray.
static java.lang.String GRAY_BLUE
          The color gray blue.
static java.lang.String GRAY_GREEN
          The color gray green.
static java.lang.String GRAY_RED
          The color gray red.
static java.awt.Color grayBlue
          Gray blue.
static java.awt.Color grayGreen
          Gray green.
static java.awt.Color grayRed
          Gray red.
static java.lang.String GREEN
          The color green.
static java.awt.Color indigo
          Indigo.
static java.lang.String INDIGO
          The color indigo.
static java.lang.String LIGHT_GRAY
          The color light gray.
static java.lang.String LIGHT_GREEN
          The color light green.
static java.lang.String LIGHT_WHITE
          The color light white.
static java.lang.String LIGHTER_GRAY
          The color lighter gray.
static java.awt.Color lighterGray
          Light Gray (lighter than Color.gray).
static java.awt.Color lightGreen
          Light Green.
static java.awt.Color lightWhite
          Light white (darker than Color.white).
static java.lang.String MAGENTA
          The color magenta.
static java.lang.String ORANGE
          The color orange.
static java.lang.String PINK
          The color pink.
static java.lang.String PRINCETON_ORANGE
          The color princeton orange.
static java.awt.Color princetonOrange
          Princeton Orange.
static java.lang.String RED
          The color red.
static java.lang.String WHITE
          The color white.
static java.lang.String YELLOW
          The color yellow.
static java.lang.String YELLOW_GREEN
          The color yellow green.
static java.awt.Color yellowGreen
          Yellow Green.
 
Constructor Summary
PaintSettings()
          Constructor, contructs a default defined NodeSettings.
PaintSettings(java.lang.String scheme)
          Constructor, contructs a defined NodeSettings with the given scheme.
 
Method Summary
 java.lang.Object clone()
          Implements cloneable so this method must be added so the object can be cloned.
static java.awt.Color getColor(java.lang.String s)
          Gets a NodeSettings that defines the given int scheme.
static java.lang.String[] getList()
          Gets an array of String elements representing every PaintSettings choice available.
 java.awt.Paint getPaint()
          Gets the paint.
static java.awt.Paint getPaint(java.lang.String s)
          Gets the paint for the given String s NodeSettings that defines the given int scheme.
static PaintSettings getScheme(java.lang.String s)
          Gets a PaintSettings that defines the given String scheme.
 java.lang.String getSettingName()
          Gets the string name for the current settings.
static java.lang.String getString(java.awt.Color s)
          Gets a String that defines the given Color.
 void setPaint(java.awt.Paint p)
          Sets the paint.
 void setScheme(java.lang.String s)
          Sets the scheme of the current PaintSettings using the defined String within this class.
 void setSettingName(java.lang.String settingName)
          Sets the string name for the current settings.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

darkBlue

public static final java.awt.Color darkBlue
Dark Blue. RGB = (13,30,125).


grayBlue

public static final java.awt.Color grayBlue
Gray blue. RGB = (72,70,157).


grayRed

public static final java.awt.Color grayRed
Gray red. RGB = (205, 158, 158).


grayGreen

public static final java.awt.Color grayGreen
Gray green. RGB = (88, 110, 84).


lightGreen

public static final java.awt.Color lightGreen
Light Green. RGB = (90,120,20).


darkGreen

public static final java.awt.Color darkGreen
Dark Green. RGB = (22,84,22).


yellowGreen

public static final java.awt.Color yellowGreen
Yellow Green. RGB = (142,190,47).


lightWhite

public static final java.awt.Color lightWhite
Light white (darker than Color.white). RGB = (231,231,231).


lighterGray

public static final java.awt.Color lighterGray
Light Gray (lighter than Color.gray). RGB = (150,150,150).


princetonOrange

public static final java.awt.Color princetonOrange
Princeton Orange. RGB = (215, 71, 33).


ghostlyGray

public static final java.awt.Color ghostlyGray
Ghostly Gray. RGB = (217, 217, 223).


aqua

public static final java.awt.Color aqua
Aqua. RGB = (40,218,174).


darkOrange

public static final java.awt.Color darkOrange
Dark Orange. RGB = (161,120,41).


brown

public static final java.awt.Color brown
Brown. RGB = (161,120,41).


indigo

public static final java.awt.Color indigo
Indigo. RGB = (92,40,170).


DARK_BLUE

public static final java.lang.String DARK_BLUE
The color dark blue.

See Also:
Constant Field Values

DARK_GREEN

public static final java.lang.String DARK_GREEN
The color dark green.

See Also:
Constant Field Values

GHOSTLY_GRAY

public static final java.lang.String GHOSTLY_GRAY
The color ghostly gray.

See Also:
Constant Field Values

GRAY_BLUE

public static final java.lang.String GRAY_BLUE
The color gray blue.

See Also:
Constant Field Values

GRAY_GREEN

public static final java.lang.String GRAY_GREEN
The color gray green.

See Also:
Constant Field Values

GRAY_RED

public static final java.lang.String GRAY_RED
The color gray red.

See Also:
Constant Field Values

INDIGO

public static final java.lang.String INDIGO
The color indigo.

See Also:
Constant Field Values

AQUA

public static final java.lang.String AQUA
The color aqua.

See Also:
Constant Field Values

LIGHT_GREEN

public static final java.lang.String LIGHT_GREEN
The color light green.

See Also:
Constant Field Values

LIGHT_WHITE

public static final java.lang.String LIGHT_WHITE
The color light white.

See Also:
Constant Field Values

LIGHTER_GRAY

public static final java.lang.String LIGHTER_GRAY
The color lighter gray.

See Also:
Constant Field Values

PRINCETON_ORANGE

public static final java.lang.String PRINCETON_ORANGE
The color princeton orange.

See Also:
Constant Field Values

DARK_ORANGE

public static final java.lang.String DARK_ORANGE
The color dark orange.

See Also:
Constant Field Values

YELLOW_GREEN

public static final java.lang.String YELLOW_GREEN
The color yellow green.

See Also:
Constant Field Values

BLACK

public static final java.lang.String BLACK
The color black.

See Also:
Constant Field Values

BLUE

public static final java.lang.String BLUE
The color blue.

See Also:
Constant Field Values

CYAN

public static final java.lang.String CYAN
The color cyan.

See Also:
Constant Field Values

DARK_GRAY

public static final java.lang.String DARK_GRAY
The color dark gray.

See Also:
Constant Field Values

GRAY

public static final java.lang.String GRAY
The color gray.

See Also:
Constant Field Values

GREEN

public static final java.lang.String GREEN
The color green.

See Also:
Constant Field Values

LIGHT_GRAY

public static final java.lang.String LIGHT_GRAY
The color light gray.

See Also:
Constant Field Values

MAGENTA

public static final java.lang.String MAGENTA
The color magenta.

See Also:
Constant Field Values

ORANGE

public static final java.lang.String ORANGE
The color orange.

See Also:
Constant Field Values

PINK

public static final java.lang.String PINK
The color pink.

See Also:
Constant Field Values

RED

public static final java.lang.String RED
The color red.

See Also:
Constant Field Values

WHITE

public static final java.lang.String WHITE
The color white.

See Also:
Constant Field Values

YELLOW

public static final java.lang.String YELLOW
The color yellow.

See Also:
Constant Field Values
Constructor Detail

PaintSettings

public PaintSettings()
Constructor, contructs a default defined NodeSettings.


PaintSettings

public PaintSettings(java.lang.String scheme)
Constructor, contructs a defined NodeSettings with the given scheme.

Method Detail

getScheme

public static PaintSettings getScheme(java.lang.String s)
Gets a PaintSettings that defines the given String scheme.

Parameters:
s - defined color scheme within the class.
Returns:
PaintSettings that defines the given color scheme or default if no color scheme exists.

getList

public static java.lang.String[] getList()
Gets an array of String elements representing every PaintSettings choice available.

Returns:
String[] that represents the list of PaintSettings strings.

getPaint

public static java.awt.Paint getPaint(java.lang.String s)
Gets the paint for the given String s NodeSettings that defines the given int scheme. The scheme must be one defined within the class, otherwise the default scheme is returned.

Parameters:
s - defined color scheme within the class.
Returns:
NodeSettings that defines the given color scheme or default if no color scheme exists.

getColor

public static java.awt.Color getColor(java.lang.String s)
Gets a NodeSettings that defines the given int scheme. The scheme must be one defined within the class, otherwise the default scheme is returned.

Parameters:
s - defined color scheme within the class.
Returns:
NodeSettings that defines the given color scheme or default if no color scheme exists.

getString

public static java.lang.String getString(java.awt.Color s)
Gets a String that defines the given Color. The color is either defined in this class of

Parameters:
s - defined color within the class or Color class.
Returns:
String that defines the given color or WHITE if no color is determined.

getPaint

public java.awt.Paint getPaint()
Gets the paint.

Returns:
Paint of the settings.

getSettingName

public java.lang.String getSettingName()
Gets the string name for the current settings.

Returns:
String defining the settings name.

setPaint

public void setPaint(java.awt.Paint p)
Sets the paint.

Parameters:
p - Paint of the settings.

setSettingName

public void setSettingName(java.lang.String settingName)
Sets the string name for the current settings.

Parameters:
settingName - String defining the settings name.

setScheme

public void setScheme(java.lang.String s)
Sets the scheme of the current PaintSettings using the defined String within this class. WHITE is default.

Parameters:
s - defined color string within the class to which the PaintSettings are set.

clone

public java.lang.Object clone()
Implements cloneable so this method must be added so the object can be cloned.

Overrides:
clone in class java.lang.Object
Returns:
Object clone of the current PaintSettings.