|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object charva.awt.Color
A class used to represent the color values available on a text terminal.
Field Summary | |
static Color |
black
|
static Color |
blue
|
static Color |
cyan
|
static Color |
green
|
static Color |
magenta
|
static Color |
red
|
static Color |
white
|
static Color |
yellow
|
Constructor Summary | |
Color(int red_,
int green_,
int blue_)
Construct a Color from the specified RGB values. |
Method Summary | |
boolean |
equals(java.lang.Object obj_)
|
static Color |
fromCursesColor(int colorval_)
Convert from an integer (ncurses-compatible) value to a Color object. |
static java.lang.String |
getColorName(int colorval_)
Convert an ncurses color value to a color name. |
int |
getCursesColor()
Convert the Color object to an integer value compatible with the ncurses library. |
static int |
getCursesColor(Color foreground_,
Color background_)
Compute the ncurses color-pair number corresponding to the specified foreground and background color. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Color black
public static final Color red
public static final Color green
public static final Color yellow
public static final Color blue
public static final Color magenta
public static final Color cyan
public static final Color white
Constructor Detail |
public Color(int red_, int green_, int blue_)
Method Detail |
public boolean equals(java.lang.Object obj_)
public int getCursesColor()
public java.lang.String toString()
public static int getCursesColor(Color foreground_, Color background_)
public static java.lang.String getColorName(int colorval_)
public static Color fromCursesColor(int colorval_)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |