sub_arctic.output
Class color_pair
java.lang.Object
|
+--sub_arctic.output.color_pair
- public class color_pair
- extends java.lang.Object
A class to hold a contrasting pair of colors (foreground and background).
Constructor Summary |
color_pair(java.awt.Color fg,
java.awt.Color bg)
Simple constructor. |
Method Summary |
java.awt.Color |
background()
Background color of the pair |
java.awt.Color |
foreground()
Foreground color of the pair |
color_pair |
inverted()
Return a new color pair with the foreground and background reversed. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_foreground
protected java.awt.Color _foreground
- Foreground color of the pair
_background
protected java.awt.Color _background
- Background color of the pair
black_on_white
public static final color_pair black_on_white
- Standard color pair for black on white
white_on_black
public static final color_pair white_on_black
- Standard color pair for white on black
color_pair
public color_pair(java.awt.Color fg,
java.awt.Color bg)
- Simple constructor.
- Parameters:
Color
- fg foreground color for the pair.Color
- bg background color for the pair.
foreground
public java.awt.Color foreground()
- Foreground color of the pair
background
public java.awt.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.