public final class TextStyles extends Object
Modifier and Type | Field and Description |
---|---|
static TextStyle.Base |
BOLD |
static TextStyle.Base |
ITALIC |
static TextStyle |
NONE
Represents an empty
TextStyle . |
static TextStyle.Base |
OBFUSCATED |
static TextStyle.Base |
RESET
Represents a
TextStyle with all bases set to false . |
static TextStyle.Base |
STRIKETHROUGH |
static TextStyle.Base |
UNDERLINE |
Modifier and Type | Method and Description |
---|---|
static TextStyle |
of()
Returns an empty
TextStyle . |
static TextStyle |
of(TextStyle... styles)
Constructs a composite text style from the specified styles.
|
public static final TextStyle.Base OBFUSCATED
public static final TextStyle.Base BOLD
public static final TextStyle.Base STRIKETHROUGH
public static final TextStyle.Base UNDERLINE
public static final TextStyle.Base ITALIC
public static final TextStyle.Base RESET
TextStyle
with all bases set to false
.public static TextStyle of(TextStyle... styles)
TextStyle.and(TextStyle...)
on all
of the text styles.styles
- The styles to combine