java.io.Serializable
, java.lang.Comparable<ColorLibrary.Color>
public static enum ColorLibrary.Color extends java.lang.Enum<ColorLibrary.Color>
Enum Constant | Description |
---|---|
BGBLACK |
|
BGBLUE |
|
BGCYAN |
|
BGDEFAULT |
|
BGGREEN |
|
BGPURPLE |
|
BGRED |
|
BGWHITE |
|
BGYELLOW |
|
BLACK |
|
BLINK |
|
BLUE |
|
BOLD |
|
BROWN |
|
CYAN |
|
DARKGREY |
|
GREEN |
|
GREY |
|
ITALICS |
|
LIGHTBLUE |
|
LIGHTCYAN |
|
LIGHTGREEN |
|
LIGHTPURPLE |
|
LIGHTRED |
|
NONE |
|
PURPLE |
|
RED |
|
UNDERLINE |
|
WHITE |
|
YELLOW |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getANSICode() |
Returns the ANSI escape codes for this color.
|
char |
getBGCodeChar() |
Returns the ^~ char code, or 0 if its not a basic color
|
char |
getCodeChar() |
Returns the ^ char code, or 0 if its not a basic color
|
java.lang.String |
getCodeString() |
Returns the name, but with - instead of _
|
java.lang.String |
getHtmlTag() |
Returns the HTML tag for this color code
|
boolean |
isBasicColor() |
True if its a basic 16 color, but also non-black.
|
static ColorLibrary.Color |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ColorLibrary.Color[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorLibrary.Color WHITE
public static final ColorLibrary.Color LIGHTGREEN
public static final ColorLibrary.Color LIGHTBLUE
public static final ColorLibrary.Color LIGHTRED
public static final ColorLibrary.Color YELLOW
public static final ColorLibrary.Color LIGHTCYAN
public static final ColorLibrary.Color LIGHTPURPLE
public static final ColorLibrary.Color GREY
public static final ColorLibrary.Color GREEN
public static final ColorLibrary.Color BLUE
public static final ColorLibrary.Color RED
public static final ColorLibrary.Color BROWN
public static final ColorLibrary.Color CYAN
public static final ColorLibrary.Color PURPLE
public static final ColorLibrary.Color DARKGREY
public static final ColorLibrary.Color BLACK
public static final ColorLibrary.Color NONE
public static final ColorLibrary.Color BOLD
public static final ColorLibrary.Color UNDERLINE
public static final ColorLibrary.Color BLINK
public static final ColorLibrary.Color ITALICS
public static final ColorLibrary.Color BGWHITE
public static final ColorLibrary.Color BGGREEN
public static final ColorLibrary.Color BGBLUE
public static final ColorLibrary.Color BGRED
public static final ColorLibrary.Color BGYELLOW
public static final ColorLibrary.Color BGCYAN
public static final ColorLibrary.Color BGPURPLE
public static final ColorLibrary.Color BGBLACK
public static final ColorLibrary.Color BGDEFAULT
public static ColorLibrary.Color[] values()
for (ColorLibrary.Color c : ColorLibrary.Color.values()) System.out.println(c);
public static ColorLibrary.Color valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final boolean isBasicColor()
public final java.lang.String getHtmlTag()
public final java.lang.String getANSICode()
public final char getCodeChar()
public final char getBGCodeChar()
public final java.lang.String getCodeString()