Package org.jline.utils
Class AttributedStyle
java.lang.Object
org.jline.utils.AttributedStyle
Text styling.
- Author:
- Guillaume Nodet
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final AttributedStyle
static final AttributedStyle
static final int
static final int
static final AttributedStyle
static final int
static final AttributedStyle
static final AttributedStyle
static final AttributedStyle
static final AttributedStyle
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackground
(int color) background
(int r, int g, int b) backgroundRgb
(int color) blink()
blinkOff()
bold()
boldOff()
conceal()
boolean
faint()
faintOff()
foreground
(int color) foreground
(int r, int g, int b) foregroundRgb
(int color) long
getMask()
long
getStyle()
int
hashCode()
hidden()
The hidden flag can be used to embed custom escape sequences.inverse()
italic()
toAnsi()
toString()
-
Field Details
-
BLACK
public static final int BLACK- See Also:
-
RED
public static final int RED- See Also:
-
GREEN
public static final int GREEN- See Also:
-
YELLOW
public static final int YELLOW- See Also:
-
BLUE
public static final int BLUE- See Also:
-
MAGENTA
public static final int MAGENTA- See Also:
-
CYAN
public static final int CYAN- See Also:
-
WHITE
public static final int WHITE- See Also:
-
BRIGHT
public static final int BRIGHT- See Also:
-
DEFAULT
-
BOLD
-
BOLD_OFF
-
INVERSE
-
INVERSE_OFF
-
HIDDEN
-
HIDDEN_OFF
-
-
Constructor Details
-
AttributedStyle
public AttributedStyle() -
AttributedStyle
-
AttributedStyle
public AttributedStyle(long style, long mask)
-
-
Method Details
-
bold
-
boldOff
-
boldDefault
-
faint
-
faintOff
-
faintDefault
-
italic
-
italicOff
-
italicDefault
-
underline
-
underlineOff
-
underlineDefault
-
blink
-
blinkOff
-
blinkDefault
-
inverse
-
inverseNeg
-
inverseOff
-
inverseDefault
-
conceal
-
concealOff
-
concealDefault
-
crossedOut
-
crossedOutOff
-
crossedOutDefault
-
foreground
-
foreground
-
foregroundRgb
-
foregroundOff
-
foregroundDefault
-
background
-
background
-
backgroundRgb
-
backgroundOff
-
backgroundDefault
-
getStyle
public long getStyle() -
getMask
public long getMask() -
equals
-
hashCode
public int hashCode() -
toAnsi
-
toString
-