|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coalevo.text.util.ANSIHelper
public class ANSIHelper
Provides standard ANSI Terminal colors and styles.
| Field Summary | |
|---|---|
static java.lang.Character |
BLACK
Defines the markup representation of the color black. |
static java.lang.Character |
BLINK
Defines the markup representation of the activator for style blinking. |
static java.lang.Character |
BLUE
Defines the markup representation of the color blue. |
static java.lang.Character |
BOLD
Defines the markup representation of the activator for style bold (normally represented by high intensity). |
static java.lang.Character |
CYAN
Defines the markup representation of the color cyan. |
static java.lang.Character |
GREEN
Defines the markup representation of the color green. |
static java.lang.Character |
ITALIC
Defines the markup representation of the activator for style italic. |
static java.lang.Character |
MAGENTA
Defines the markup representation of the color magenta. |
static java.lang.Character |
RED
Defines the markup representation of the color red. |
static java.lang.Character |
UNDERLINED
Defines the markup representation of the activator for style underlined. |
static java.lang.Character |
WHITE
Defines the markup representation of the color white. |
static java.lang.Character |
YELLOW
Defines the markup representation of the color yellow. |
| Constructor Summary | |
|---|---|
ANSIHelper()
|
|
| Method Summary | |
|---|---|
java.lang.String |
endBgColor()
|
java.lang.String |
endFgColor()
|
java.lang.String |
endStyle()
|
static java.lang.Character |
getColor(java.lang.String color)
|
static int |
getVisibleLength(java.lang.String str)
Returns the length of the visible string calculated from the internal marked-up string passed as parameter. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
resetAll()
|
java.lang.String |
startBgColor(java.lang.Character color)
|
java.lang.String |
startFgColor(java.lang.Character color)
|
java.lang.String |
startStyle(java.lang.Character style)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Character BLACK
public static final java.lang.Character RED
public static final java.lang.Character GREEN
public static final java.lang.Character YELLOW
public static final java.lang.Character BLUE
public static final java.lang.Character MAGENTA
public static final java.lang.Character CYAN
public static final java.lang.Character WHITE
public static final java.lang.Character BOLD
public static final java.lang.Character ITALIC
public static final java.lang.Character UNDERLINED
public static final java.lang.Character BLINK
| Constructor Detail |
|---|
public ANSIHelper()
| Method Detail |
|---|
public java.lang.String resetAll()
public java.lang.String startFgColor(java.lang.Character color)
public java.lang.String endFgColor()
public java.lang.String startBgColor(java.lang.Character color)
public java.lang.String endBgColor()
public java.lang.String startStyle(java.lang.Character style)
public java.lang.String endStyle()
public static final java.lang.Character getColor(java.lang.String color)
public static int getVisibleLength(java.lang.String str)
str - String with internal color/style markups.
public static void main(java.lang.String[] args)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||