|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Color> org.crsh.text.Color
public enum Color
A color representing the available ansi colors as well as an additional color def
that symbolize the default color.
Enum Constant Summary | |
---|---|
black . |
|
blue . |
|
cyan . |
|
def . |
|
green . |
|
magenta . |
|
red . |
|
white . |
|
yellow . |
Field Summary | |
---|---|
char |
c |
int |
code . |
Method Summary | |
---|---|
Style.Composite |
background() |
Style.Composite |
bg() |
Style.Composite |
blink() |
Style.Composite |
blink(Boolean value) |
Style.Composite |
bold() |
Style.Composite |
bold(Boolean value) |
Style.Composite |
fg() |
Style.Composite |
foreground() |
Style.Composite |
underline() |
Style.Composite |
underline(Boolean value) |
static Color |
valueOf(String name) Returns the enum constant of this type with the specified name. |
static Color[] |
values() Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant 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
public static final Color def
Field Detail |
---|
public final int code
public final char c
Method Detail |
---|
public static Color[] values()
for (Color c : Color.values()) System.out.println(c);
public static Color valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Style.Composite fg()
public Style.Composite foreground()
public Style.Composite bg()
public Style.Composite background()
public Style.Composite bold()
public Style.Composite underline()
public Style.Composite blink()
public Style.Composite bold(Boolean value)
public Style.Composite underline(Boolean value)
public Style.Composite blink(Boolean value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |