Package org.jline.utils
Class AttributedStyle
- java.lang.Object
-
- org.jline.utils.AttributedStyle
-
public class AttributedStyle extends java.lang.ObjectText styling.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static longBG_COLOR(package private) static intBG_COLOR_EXPstatic intBLACKstatic intBLUEstatic AttributedStyleBOLDstatic AttributedStyleBOLD_OFFstatic intBRIGHTstatic intCYANstatic AttributedStyleDEFAULT(package private) static longF_BACKGROUND(package private) static longF_BACKGROUND_IND(package private) static longF_BACKGROUND_RGB(package private) static longF_BLINK(package private) static longF_BOLD(package private) static longF_CONCEAL(package private) static longF_CROSSED_OUT(package private) static longF_FAINT(package private) static longF_FOREGROUND(package private) static longF_FOREGROUND_IND(package private) static longF_FOREGROUND_RGB(package private) static longF_HIDDEN(package private) static longF_INVERSE(package private) static longF_ITALIC(package private) static longF_UNDERLINE(package private) static longFG_COLOR(package private) static intFG_COLOR_EXPstatic intGREENstatic AttributedStyleHIDDENstatic AttributedStyleHIDDEN_OFFstatic AttributedStyleINVERSEstatic AttributedStyleINVERSE_OFFstatic intMAGENTA(package private) longmask(package private) static longMASKstatic intRED(package private) longstylestatic intWHITEstatic intYELLOW
-
Constructor Summary
Constructors Constructor Description AttributedStyle()AttributedStyle(long style, long mask)AttributedStyle(AttributedStyle s)
-
Method Summary
-
-
-
Field Detail
-
BLACK
public static final int BLACK
- See Also:
- Constant Field Values
-
RED
public static final int RED
- See Also:
- Constant Field Values
-
GREEN
public static final int GREEN
- See Also:
- Constant Field Values
-
YELLOW
public static final int YELLOW
- See Also:
- Constant Field Values
-
BLUE
public static final int BLUE
- See Also:
- Constant Field Values
-
MAGENTA
public static final int MAGENTA
- See Also:
- Constant Field Values
-
CYAN
public static final int CYAN
- See Also:
- Constant Field Values
-
WHITE
public static final int WHITE
- See Also:
- Constant Field Values
-
BRIGHT
public static final int BRIGHT
- See Also:
- Constant Field Values
-
F_BOLD
static final long F_BOLD
- See Also:
- Constant Field Values
-
F_FAINT
static final long F_FAINT
- See Also:
- Constant Field Values
-
F_ITALIC
static final long F_ITALIC
- See Also:
- Constant Field Values
-
F_UNDERLINE
static final long F_UNDERLINE
- See Also:
- Constant Field Values
-
F_BLINK
static final long F_BLINK
- See Also:
- Constant Field Values
-
F_INVERSE
static final long F_INVERSE
- See Also:
- Constant Field Values
-
F_CONCEAL
static final long F_CONCEAL
- See Also:
- Constant Field Values
-
F_CROSSED_OUT
static final long F_CROSSED_OUT
- See Also:
- Constant Field Values
-
F_FOREGROUND_IND
static final long F_FOREGROUND_IND
- See Also:
- Constant Field Values
-
F_FOREGROUND_RGB
static final long F_FOREGROUND_RGB
- See Also:
- Constant Field Values
-
F_FOREGROUND
static final long F_FOREGROUND
- See Also:
- Constant Field Values
-
F_BACKGROUND_IND
static final long F_BACKGROUND_IND
- See Also:
- Constant Field Values
-
F_BACKGROUND_RGB
static final long F_BACKGROUND_RGB
- See Also:
- Constant Field Values
-
F_BACKGROUND
static final long F_BACKGROUND
- See Also:
- Constant Field Values
-
F_HIDDEN
static final long F_HIDDEN
- See Also:
- Constant Field Values
-
MASK
static final long MASK
- See Also:
- Constant Field Values
-
FG_COLOR_EXP
static final int FG_COLOR_EXP
- See Also:
- Constant Field Values
-
BG_COLOR_EXP
static final int BG_COLOR_EXP
- See Also:
- Constant Field Values
-
FG_COLOR
static final long FG_COLOR
- See Also:
- Constant Field Values
-
BG_COLOR
static final long BG_COLOR
- See Also:
- Constant Field Values
-
DEFAULT
public static final AttributedStyle DEFAULT
-
BOLD
public static final AttributedStyle BOLD
-
BOLD_OFF
public static final AttributedStyle BOLD_OFF
-
INVERSE
public static final AttributedStyle INVERSE
-
INVERSE_OFF
public static final AttributedStyle INVERSE_OFF
-
HIDDEN
public static final AttributedStyle HIDDEN
-
HIDDEN_OFF
public static final AttributedStyle HIDDEN_OFF
-
style
final long style
-
mask
final long mask
-
-
Constructor Detail
-
AttributedStyle
public AttributedStyle()
-
AttributedStyle
public AttributedStyle(AttributedStyle s)
-
AttributedStyle
public AttributedStyle(long style, long mask)
-
-
Method Detail
-
bold
public AttributedStyle bold()
-
boldOff
public AttributedStyle boldOff()
-
boldDefault
public AttributedStyle boldDefault()
-
faint
public AttributedStyle faint()
-
faintOff
public AttributedStyle faintOff()
-
faintDefault
public AttributedStyle faintDefault()
-
italic
public AttributedStyle italic()
-
italicOff
public AttributedStyle italicOff()
-
italicDefault
public AttributedStyle italicDefault()
-
underline
public AttributedStyle underline()
-
underlineOff
public AttributedStyle underlineOff()
-
underlineDefault
public AttributedStyle underlineDefault()
-
blink
public AttributedStyle blink()
-
blinkOff
public AttributedStyle blinkOff()
-
blinkDefault
public AttributedStyle blinkDefault()
-
inverse
public AttributedStyle inverse()
-
inverseNeg
public AttributedStyle inverseNeg()
-
inverseOff
public AttributedStyle inverseOff()
-
inverseDefault
public AttributedStyle inverseDefault()
-
conceal
public AttributedStyle conceal()
-
concealOff
public AttributedStyle concealOff()
-
concealDefault
public AttributedStyle concealDefault()
-
crossedOut
public AttributedStyle crossedOut()
-
crossedOutOff
public AttributedStyle crossedOutOff()
-
crossedOutDefault
public AttributedStyle crossedOutDefault()
-
foreground
public AttributedStyle foreground(int color)
-
foreground
public AttributedStyle foreground(int r, int g, int b)
-
foregroundRgb
public AttributedStyle foregroundRgb(int color)
-
foregroundOff
public AttributedStyle foregroundOff()
-
foregroundDefault
public AttributedStyle foregroundDefault()
-
background
public AttributedStyle background(int color)
-
background
public AttributedStyle background(int r, int g, int b)
-
backgroundRgb
public AttributedStyle backgroundRgb(int color)
-
backgroundOff
public AttributedStyle backgroundOff()
-
backgroundDefault
public AttributedStyle backgroundDefault()
-
hidden
public AttributedStyle hidden()
The hidden flag can be used to embed custom escape sequences. The characters are considered being 0-column long and will be printed as-is. The user is responsible for ensuring that those sequences do not move the cursor.- Returns:
- the new style
-
hiddenOff
public AttributedStyle hiddenOff()
-
hiddenDefault
public AttributedStyle hiddenDefault()
-
getStyle
public long getStyle()
-
getMask
public long getMask()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toAnsi
public java.lang.String toAnsi()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-