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
-
_background
- Background color of the pair
-
_foreground
- Foreground color of the pair
-
black_on_white
- Standard color pair for black on white
-
white_on_black
- Standard color pair for white on black
-
color_pair(Color, Color)
-
Simple constructor.
-
background()
- Background color of the pair
-
foreground()
- Foreground color of the pair
-
inverted()
-
Return a new color pair with the foreground and background reversed.
_foreground
protected Color _foreground
- Foreground color of the pair
_background
protected Color _background
- Background color of the pair
black_on_white
public final static color_pair black_on_white
- Standard color pair for black on white
white_on_black
public final static color_pair white_on_black
- Standard color pair for white on black
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.
foreground
public Color foreground()
- Foreground color of the pair
background
public Color background()
- Background color of the pair
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