Class sub_arctic.output.color_pair
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sub_arctic.output.color_pair

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

public class color_pair
extends Object
A class to hold a contrasting pair of colors (foreground and background).
Author:
Scott Hudson

Variable Index

 o _background
Background color of the pair
 o _foreground
Foreground color of the pair
 o black_on_white
Standard color pair for black on white
 o white_on_black
Standard color pair for white on black

Constructor Index

 o color_pair(Color, Color)
Simple constructor.

Method Index

 o background()
Background color of the pair
 o foreground()
Foreground color of the pair
 o inverted()
Return a new color pair with the foreground and background reversed.

Variables

 o _foreground
  protected Color _foreground
Foreground color of the pair
 o _background
  protected Color _background
Background color of the pair
 o black_on_white
  public final static color_pair black_on_white
Standard color pair for black on white
 o white_on_black
  public final static color_pair white_on_black
Standard color pair for white on black

Constructors

 o color_pair
  public color_pair(Color fg,
                    Color bg)
Simple constructor.
Parameters:
Color - fg foreground color for the pair.
Color - bg background color for the pair.

Methods

 o foreground
  public Color foreground()
Foreground color of the pair
 o background
  public Color background()
Background color of the pair
 o inverted
  public color_pair inverted()
Return a new color pair with the foreground and background reversed.
Returns:
color_pair the reversed color pair.

All Packages  Class Hierarchy  This Package  Previous  Next  Index