|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Decoration> org.crsh.text.Decoration
public enum Decoration
Enum Constant Summary | |
---|---|
blink
. |
|
blink_off
. |
|
bold
. |
|
bold_off
. |
|
underline
. |
|
underline_off
. |
Field Summary | |
---|---|
String |
code
. |
(package private) int |
index
. |
(package private) boolean |
on
. |
Method Summary | |
---|---|
Style.Composite |
background(Color value)
|
Style.Composite |
bg(Color value)
|
Style.Composite |
blink()
|
Style.Composite |
blink(Boolean value)
|
Style.Composite |
bold()
|
Style.Composite |
bold(Boolean value)
|
Style.Composite |
fg(Color value)
|
Style.Composite |
foreground(Color value)
|
Style.Composite |
underline()
|
Style.Composite |
underline(Boolean value)
|
static Decoration |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Decoration[] |
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 Decoration bold
public static final Decoration bold_off
public static final Decoration underline
public static final Decoration underline_off
public static final Decoration blink
public static final Decoration blink_off
Field Detail |
---|
final int index
final boolean on
public final String code
Method Detail |
---|
public static Decoration[] values()
for (Decoration c : Decoration.values()) System.out.println(c);
public static Decoration valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Style.Composite fg(Color value)
public Style.Composite foreground(Color value)
public Style.Composite bg(Color value)
public Style.Composite background(Color value)
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 |