org.fusesource.jansi
Enum AnsiRenderer.Code

java.lang.Object
  extended by java.lang.Enum<AnsiRenderer.Code>
      extended by org.fusesource.jansi.AnsiRenderer.Code
All Implemented Interfaces:
Serializable, Comparable<AnsiRenderer.Code>
Enclosing class:
AnsiRenderer

public static enum AnsiRenderer.Code
extends Enum<AnsiRenderer.Code>


Enum Constant Summary
BG_BLACK
           
BG_BLUE
           
BG_CYAN
           
BG_GREEN
           
BG_MAGENTA
           
BG_RED
           
BG_WHITE
           
BG_YELLOW
           
BLACK
           
BLINK_FAST
           
BLINK_OFF
           
BLINK_SLOW
           
BLUE
           
BOLD
           
CONCEAL_OFF
           
CONCEAL_ON
           
CYAN
           
FAINT
           
FG_BLACK
           
FG_BLUE
           
FG_CYAN
           
FG_GREEN
           
FG_MAGENTA
           
FG_RED
           
FG_WHITE
           
FG_YELLOW
           
GREEN
           
INTENSITY_BOLD
           
INTENSITY_FAINT
           
ITALIC
           
MAGENTA
           
NEGATIVE_OFF
           
NEGATIVE_ON
           
RED
           
RESET
           
UNDERLINE
           
UNDERLINE_DOUBLE
           
UNDERLINE_OFF
           
WHITE
           
YELLOW
           
 
Method Summary
 Ansi.Attribute getAttribute()
           
 Ansi.Color getColor()
           
 boolean isAttribute()
           
 boolean isBackground()
           
 boolean isColor()
           
static AnsiRenderer.Code valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AnsiRenderer.Code[] 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

BLACK

public static final AnsiRenderer.Code BLACK

RED

public static final AnsiRenderer.Code RED

GREEN

public static final AnsiRenderer.Code GREEN

YELLOW

public static final AnsiRenderer.Code YELLOW

BLUE

public static final AnsiRenderer.Code BLUE

MAGENTA

public static final AnsiRenderer.Code MAGENTA

CYAN

public static final AnsiRenderer.Code CYAN

WHITE

public static final AnsiRenderer.Code WHITE

FG_BLACK

public static final AnsiRenderer.Code FG_BLACK

FG_RED

public static final AnsiRenderer.Code FG_RED

FG_GREEN

public static final AnsiRenderer.Code FG_GREEN

FG_YELLOW

public static final AnsiRenderer.Code FG_YELLOW

FG_BLUE

public static final AnsiRenderer.Code FG_BLUE

FG_MAGENTA

public static final AnsiRenderer.Code FG_MAGENTA

FG_CYAN

public static final AnsiRenderer.Code FG_CYAN

FG_WHITE

public static final AnsiRenderer.Code FG_WHITE

BG_BLACK

public static final AnsiRenderer.Code BG_BLACK

BG_RED

public static final AnsiRenderer.Code BG_RED

BG_GREEN

public static final AnsiRenderer.Code BG_GREEN

BG_YELLOW

public static final AnsiRenderer.Code BG_YELLOW

BG_BLUE

public static final AnsiRenderer.Code BG_BLUE

BG_MAGENTA

public static final AnsiRenderer.Code BG_MAGENTA

BG_CYAN

public static final AnsiRenderer.Code BG_CYAN

BG_WHITE

public static final AnsiRenderer.Code BG_WHITE

RESET

public static final AnsiRenderer.Code RESET

INTENSITY_BOLD

public static final AnsiRenderer.Code INTENSITY_BOLD

INTENSITY_FAINT

public static final AnsiRenderer.Code INTENSITY_FAINT

ITALIC

public static final AnsiRenderer.Code ITALIC

UNDERLINE

public static final AnsiRenderer.Code UNDERLINE

BLINK_SLOW

public static final AnsiRenderer.Code BLINK_SLOW

BLINK_FAST

public static final AnsiRenderer.Code BLINK_FAST

BLINK_OFF

public static final AnsiRenderer.Code BLINK_OFF

NEGATIVE_ON

public static final AnsiRenderer.Code NEGATIVE_ON

NEGATIVE_OFF

public static final AnsiRenderer.Code NEGATIVE_OFF

CONCEAL_ON

public static final AnsiRenderer.Code CONCEAL_ON

CONCEAL_OFF

public static final AnsiRenderer.Code CONCEAL_OFF

UNDERLINE_DOUBLE

public static final AnsiRenderer.Code UNDERLINE_DOUBLE

UNDERLINE_OFF

public static final AnsiRenderer.Code UNDERLINE_OFF

BOLD

public static final AnsiRenderer.Code BOLD

FAINT

public static final AnsiRenderer.Code FAINT
Method Detail

values

public static AnsiRenderer.Code[] 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 (AnsiRenderer.Code c : AnsiRenderer.Code.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AnsiRenderer.Code valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isColor

public boolean isColor()

getColor

public Ansi.Color getColor()

isAttribute

public boolean isAttribute()

getAttribute

public Ansi.Attribute getAttribute()

isBackground

public boolean isBackground()


Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.