public class TerminalColor extends Object
Constructor and Description |
---|
TerminalColor() |
TerminalColor(Color text,
Color background) |
TerminalColor(Color textColor,
Color background,
Color.Intensity intensity) |
TerminalColor(Color text,
int background) |
TerminalColor(Color text,
int background,
Color.Intensity intensity) |
TerminalColor(int text,
Color background)
0x00-0x07: standard colors (as in ESC [ 30..37 m)
0x08-0x0f: high intensity colors (as in ESC [ 90..97 m)
0x10-0xe7: 6*6*6=216 colors: 16 + 36*r + 6*g + b (0≤r,g,b≤5)
0xe8-0xff: grayscale from black to white in 24 steps
|
TerminalColor(int text,
Color background,
Color.Intensity intensity) |
TerminalColor(int text,
int background)
0x00-0x07: standard colors (as in ESC [ 30..37 m)
0x08-0x0f: high intensity colors (as in ESC [ 90..97 m)
0x10-0xe7: 6*6*6=216 colors: 16 + 36*r + 6*g + b (0≤r,g,b≤5)
0xe8-0xff: grayscale from black to white in 24 steps
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
fullString() |
int |
getLength() |
int |
hashCode() |
String |
toString() |
String |
toString(TerminalColor prev) |
void |
write(PrintStream out) |
public TerminalColor()
public TerminalColor(Color textColor, Color background, Color.Intensity intensity)
public TerminalColor(int text, int background)
text
- background
- public TerminalColor(int text, Color background)
text
- background
- public TerminalColor(int text, Color background, Color.Intensity intensity)
public TerminalColor(Color text, int background)
public TerminalColor(Color text, int background, Color.Intensity intensity)
public String fullString()
public int getLength()
public void write(PrintStream out)
public String toString(TerminalColor prev)
Copyright © 2018 JBoss by Red Hat. All rights reserved.