maspack.util
Enum ANSIColorLogger.ANSIColor
java.lang.Object
java.lang.Enum<ANSIColorLogger.ANSIColor>
maspack.util.ANSIColorLogger.ANSIColor
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ANSIColorLogger.ANSIColor>
- Enclosing class:
- ANSIColorLogger
public static enum ANSIColorLogger.ANSIColor
- extends java.lang.Enum<ANSIColorLogger.ANSIColor>
Allows different colours for log levels. Works on *nix
terminals, and on eclipse with the ANSI Console plugin
http://www.mihai-nita.net/eclipse
- Author:
- Antonio Sanchez
Creation date: 21 Oct 2012
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NONE
public static final ANSIColorLogger.ANSIColor NONE
BLACK
public static final ANSIColorLogger.ANSIColor BLACK
BRIGHT_BLACK
public static final ANSIColorLogger.ANSIColor BRIGHT_BLACK
BLUE
public static final ANSIColorLogger.ANSIColor BLUE
BRIGHT_BLUE
public static final ANSIColorLogger.ANSIColor BRIGHT_BLUE
GREEN
public static final ANSIColorLogger.ANSIColor GREEN
BRIGHT_GREEN
public static final ANSIColorLogger.ANSIColor BRIGHT_GREEN
CYAN
public static final ANSIColorLogger.ANSIColor CYAN
BRIGHT_CYAN
public static final ANSIColorLogger.ANSIColor BRIGHT_CYAN
RED
public static final ANSIColorLogger.ANSIColor RED
BRIGHT_RED
public static final ANSIColorLogger.ANSIColor BRIGHT_RED
MAGENTA
public static final ANSIColorLogger.ANSIColor MAGENTA
BRIGHT_MAGENTA
public static final ANSIColorLogger.ANSIColor BRIGHT_MAGENTA
YELLOW
public static final ANSIColorLogger.ANSIColor YELLOW
BRIGHT_YELLOW
public static final ANSIColorLogger.ANSIColor BRIGHT_YELLOW
WHITE
public static final ANSIColorLogger.ANSIColor WHITE
BRIGHT_WHITE
public static final ANSIColorLogger.ANSIColor BRIGHT_WHITE
values
public static ANSIColorLogger.ANSIColor[] 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 (ANSIColorLogger.ANSIColor c : ANSIColorLogger.ANSIColor.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ANSIColorLogger.ANSIColor 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 name
java.lang.NullPointerException
- if the argument is null
start
public java.lang.String start()
end
public java.lang.String end()