|
Josh Native console access wrapper for Java |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.yifanlu.Josh.ConsoleAttribute
com.yifanlu.Josh.ConsoleColor
public class ConsoleColor
Stores the color attributes of console output.
This is just ConsoleAttribute with color constants
and methods.
JoshOutput| Field Summary | |
|---|---|
static int |
BACKGROUND_BLUE
Background color constant. |
static int |
BACKGROUND_GREEN
Background color constant. |
static int |
BACKGROUND_INTENSITY
Background color constant. |
static int |
BACKGROUND_RED
Background color constant. |
static int |
FOREGROUND_BLUE
Forground color constant. |
static int |
FOREGROUND_GREEN
Forground color constant. |
static int |
FOREGROUND_INTENSITY
Forground color constant. |
static int |
FOREGROUND_RED
Forground color constant. |
| Fields inherited from class com.yifanlu.Josh.ConsoleAttribute |
|---|
attributes, COMMON_LVB_GRID_HORIZONTAL, COMMON_LVB_GRID_LVERTICAL, COMMON_LVB_GRID_RVERTICAL, COMMON_LVB_LEADING_BYTE, COMMON_LVB_REVERSE_VIDEO, COMMON_LVB_TRAILING_BYTE, COMMON_LVB_UNDERSCORE |
| Constructor Summary | |
|---|---|
ConsoleColor(boolean red,
boolean blue,
boolean green,
boolean bright,
boolean background)
Create a new color object by specifying which colors to show. |
|
| Method Summary | |
|---|---|
static ConsoleColor |
BLACK()
Deprecated. Same as BLACK(false) |
static ConsoleColor |
BLACK(boolean bright)
Creates and returns a black color attribute. |
static ConsoleColor |
BLUE()
Deprecated. Same as BLUE(false) |
static ConsoleColor |
BLUE(boolean bright)
Creates and returns a blue color attribute. |
static ConsoleColor |
CRYAN()
Deprecated. Same as CRYAN(false) |
static ConsoleColor |
CRYAN(boolean bright)
Creates and returns a cryan color attribute. |
static ConsoleColor |
GREEN()
Deprecated. Same as GREEN(false) |
static ConsoleColor |
GREEN(boolean bright)
Creates and returns a green color attribute. |
static ConsoleColor |
MAGENTA()
Deprecated. Same as MAGENTA(false) |
static ConsoleColor |
MAGENTA(boolean bright)
Creates and returns a magenta color attribute. |
void |
makeBackground()
Makes any color in the attribute a background color (highlight). |
void |
makeForeground()
Makes any color in the attribute a foreground color (text color). |
static ConsoleColor |
RED()
Deprecated. Same as RED(false) |
static ConsoleColor |
RED(boolean bright)
Creates and returns a red color attribute. |
static ConsoleColor |
WHITE()
Deprecated. Same as WHITE(false) |
static ConsoleColor |
WHITE(boolean bright)
Creates and returns a white color attribute. |
static ConsoleColor |
YELLOW()
Deprecated. Same as YELLOW(false) |
static ConsoleColor |
YELLOW(boolean bright)
Creates and returns a yellow color attribute. |
| Methods inherited from class com.yifanlu.Josh.ConsoleAttribute |
|---|
addAttributes, equals, getAttributes, hashCode, setAttributes, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FOREGROUND_BLUE
public static final int FOREGROUND_GREEN
public static final int FOREGROUND_RED
public static final int FOREGROUND_INTENSITY
public static final int BACKGROUND_BLUE
public static final int BACKGROUND_GREEN
public static final int BACKGROUND_RED
public static final int BACKGROUND_INTENSITY
| Constructor Detail |
|---|
public ConsoleColor(boolean red,
boolean blue,
boolean green,
boolean bright,
boolean background)
red - Mix red.blue - Mix blue.green - Mix green.bright - Makes color bright.background - This color is a background color (foreground is the text color,
background is the color behind the text, like a highlight).| Method Detail |
|---|
public void makeBackground()
public void makeForeground()
public static final ConsoleColor RED(boolean bright)
bright - Optional: Returns bright red.
public static final ConsoleColor RED()
RED(false)
RED(boolean)public static final ConsoleColor BLUE(boolean bright)
bright - Optional: Returns bright blue.
public static final ConsoleColor BLUE()
BLUE(false)
BLUE(boolean)public static final ConsoleColor GREEN(boolean bright)
bright - Optional: Returns bright green.
public static final ConsoleColor GREEN()
GREEN(false)
GREEN(boolean)public static final ConsoleColor YELLOW(boolean bright)
bright - Optional: Returns bright yellow.
public static final ConsoleColor YELLOW()
YELLOW(false)
YELLOW(boolean)public static final ConsoleColor CRYAN(boolean bright)
bright - Optional: Returns bright cryan.
public static final ConsoleColor CRYAN()
CRYAN(false)
CRYAN(boolean)public static final ConsoleColor MAGENTA(boolean bright)
bright - Optional: Returns bright magenta.
public static final ConsoleColor MAGENTA()
MAGENTA(false)
MAGENTA(boolean)public static final ConsoleColor WHITE(boolean bright)
bright - Optional: Returns bright white.
public static final ConsoleColor WHITE()
WHITE(false)
WHITE(boolean)public static final ConsoleColor BLACK(boolean bright)
bright - Optional: Returns bright black.
public static final ConsoleColor BLACK()
BLACK(false)
BLACK(boolean)
|
Copyright © 2010 Yifan Lu | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||