sub_arctic.output
Class color_scheme

java.lang.Object
  |
  +--sub_arctic.output.color_scheme

public class color_scheme
extends java.lang.Object

This object holds a set of colors that work well together. It is intended to provide programmers with an abstraction so that the job of assigning colors to interface elements can be made without modifying interface code.

The following named colors are provided in a color scheme:

base
The base color is the color that is used as the "dominant" color for graphical objects. For example, a button's text is drawn on top of this color when the button is "up".
highlight
A lighter rendition of the base color used to create a highlight in pseudo 3D effects.
shadow
A darker rendition of the base color used to create a shadow in pseudo 3D effects.
background
The color used for background (or inset) items in a drawing scheme (rather than as a typical background area per se). For example, the background of a slider (the "groove" that the thumb slides in) is drawn in this color. [This name probably needs to be changed.]
Note: the colors: base, highlight, shadow, and background are designed to be related, typically appearing to be the same material but with different lighting.
foreground
The color normally drawn over the base color for foreground items such as textual labels. This color needs to contrast with, but not clash with the base color.
text_background
The color that serves as the background for text editing areas.
splash
A color which is designed to contrast with, and be significantly different from, the base, highlight, shadow, and background color scheme. This is used for indicators such as found inside a selected radio button or check box.


Field Summary
protected  java.awt.Color _background
          background color for the color scheme
protected  java.awt.Color _base
          base color for the color scheme
protected  java.awt.Color _foreground
          foreground color for the color scheme
protected  java.awt.Color _highlight
          highlight color for the color scheme
protected  java.awt.Color _shadow
          shadow color for the color scheme
protected  java.awt.Color _splash
          splash color for the color scheme
protected  java.awt.Color _text_background
          text_background color for the color scheme
 
Constructor Summary
color_scheme(java.awt.Color text_bg, java.awt.Color fg, java.awt.Color bg, java.awt.Color base_color, java.awt.Color shad, java.awt.Color high, java.awt.Color splash)
          Construct a new color scheme by providing all the colors.
 
Method Summary
 java.awt.Color background()
          Retrieve the background color.
 java.awt.Color base()
          Retrieve the base color.
 java.awt.Color foreground()
          Retrieve the foreground color.
 java.awt.Color highlight()
          Retrieve the highlight color.
 java.awt.Color shadow()
          Retrieve the shadow color.
 java.awt.Color splash()
          Retrieve the splash color.
 java.awt.Color text_background()
          Retrieve the text background color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_text_background

protected java.awt.Color _text_background
text_background color for the color scheme

_foreground

protected java.awt.Color _foreground
foreground color for the color scheme

_background

protected java.awt.Color _background
background color for the color scheme

_base

protected java.awt.Color _base
base color for the color scheme

_shadow

protected java.awt.Color _shadow
shadow color for the color scheme

_highlight

protected java.awt.Color _highlight
highlight color for the color scheme

_splash

protected java.awt.Color _splash
splash color for the color scheme
Constructor Detail

color_scheme

public color_scheme(java.awt.Color text_bg,
                    java.awt.Color fg,
                    java.awt.Color bg,
                    java.awt.Color base_color,
                    java.awt.Color shad,
                    java.awt.Color high,
                    java.awt.Color splash)
Construct a new color scheme by providing all the colors.
Parameters:
Color - text_bg the background for text editing and displaying large amounts of text for reading.
Color - fg the foreground color for this scheme.
Color - bg a color with high contrast for use with the foreground color but one which will not be used for display large amounts of text
Color - base_color the basic color for this interface. It should be well matched with the shadow and highlight color to allow beveling.
Color - shad the color used for putting shadows on the object drawn with the base color.
Color - high the color used for putting highlights on the object drawn with the base color
Color - splash the color used for special effects (such as the center of a radio button, or the checkmark on a checkbox) in this scheme.
Method Detail

text_background

public java.awt.Color text_background()
Retrieve the text background color.
Returns:
Color the text background color

background

public java.awt.Color background()
Retrieve the background color.
Returns:
Color the background color

foreground

public java.awt.Color foreground()
Retrieve the foreground color.
Returns:
Color the foreground color

base

public java.awt.Color base()
Retrieve the base color.
Returns:
Color the base color

highlight

public java.awt.Color highlight()
Retrieve the highlight color.
Returns:
Color the highlight color

shadow

public java.awt.Color shadow()
Retrieve the shadow color.
Returns:
Color the shadow color

splash

public java.awt.Color splash()
Retrieve the splash color.
Returns:
Color the splash color