- java.lang.Object
-
- java.lang.Enum<LogColor>
-
- dev.netcode.util.LogColor
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BG_BLACKSets background color to blackBLACKSets text color to blackBLUESets text color to blueBRIGHT_BLACKSets text color to dark grayBRIGHT_BLUESets text color to brighter blueBRIGHT_CYANSets text color to brighter cyanBRIGHT_GREENSets text color to brighter greenBRIGHT_MAGENTASets text color to brighter magentaBRIGHT_ORANGESets text color to brighter orangeBRIGHT_PURPLESets text color to brighter purpleBRIGHT_REDSets text color to brighter redBRIGHT_WHITESets text color to brighter whiteBRIGHT_YELLOWSets text color to brighter yellowCYANSets text color to cyanDARK_BLUESets text color to darker blueDARK_CYANSets text color to darker cyanDARK_GREENSets text color to darker greenDARK_MAGENTASets text color to darker magentaDARK_ORANGESets text color to darker orangeDARK_PURPLESets text color to darker purpleDARK_REDSets text color to darker redDARK_WHITESets text color to light grayDARK_YELLOWSets text color to darker yellowGREENSets text color to greenMAGENTASets text color to magentaORANGESets text color to orangePURPLESets text color to purpleREDSets text color to redRESETResets the console color to defaultWHITESets text color to whiteYELLOWSets text color to yellow
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()static LogColorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LogColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESET
public static final LogColor RESET
Resets the console color to default
-
BLACK
public static final LogColor BLACK
Sets text color to black
-
BLUE
public static final LogColor BLUE
Sets text color to blue
-
CYAN
public static final LogColor CYAN
Sets text color to cyan
-
GREEN
public static final LogColor GREEN
Sets text color to green
-
MAGENTA
public static final LogColor MAGENTA
Sets text color to magenta
-
RED
public static final LogColor RED
Sets text color to red
-
WHITE
public static final LogColor WHITE
Sets text color to white
-
YELLOW
public static final LogColor YELLOW
Sets text color to yellow
-
BRIGHT_BLACK
public static final LogColor BRIGHT_BLACK
Sets text color to dark gray
-
BRIGHT_BLUE
public static final LogColor BRIGHT_BLUE
Sets text color to brighter blue
-
BRIGHT_CYAN
public static final LogColor BRIGHT_CYAN
Sets text color to brighter cyan
-
BRIGHT_GREEN
public static final LogColor BRIGHT_GREEN
Sets text color to brighter green
-
BRIGHT_MAGENTA
public static final LogColor BRIGHT_MAGENTA
Sets text color to brighter magenta
-
BRIGHT_RED
public static final LogColor BRIGHT_RED
Sets text color to brighter red
-
BRIGHT_WHITE
public static final LogColor BRIGHT_WHITE
Sets text color to brighter white
-
BRIGHT_YELLOW
public static final LogColor BRIGHT_YELLOW
Sets text color to brighter yellow
-
ORANGE
public static final LogColor ORANGE
Sets text color to orange
-
BRIGHT_ORANGE
public static final LogColor BRIGHT_ORANGE
Sets text color to brighter orange
-
DARK_ORANGE
public static final LogColor DARK_ORANGE
Sets text color to darker orange
-
PURPLE
public static final LogColor PURPLE
Sets text color to purple
-
BRIGHT_PURPLE
public static final LogColor BRIGHT_PURPLE
Sets text color to brighter purple
-
DARK_PURPLE
public static final LogColor DARK_PURPLE
Sets text color to darker purple
-
DARK_BLUE
public static final LogColor DARK_BLUE
Sets text color to darker blue
-
DARK_CYAN
public static final LogColor DARK_CYAN
Sets text color to darker cyan
-
DARK_GREEN
public static final LogColor DARK_GREEN
Sets text color to darker green
-
DARK_MAGENTA
public static final LogColor DARK_MAGENTA
Sets text color to darker magenta
-
DARK_RED
public static final LogColor DARK_RED
Sets text color to darker red
-
DARK_WHITE
public static final LogColor DARK_WHITE
Sets text color to light gray
-
DARK_YELLOW
public static final LogColor DARK_YELLOW
Sets text color to darker yellow
-
BG_BLACK
public static final LogColor BG_BLACK
Sets background color to black
-
-
Method Detail
-
values
public static LogColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LogColor c : LogColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogColor valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<LogColor>
-
-