AttributedStyle
.
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private AttributedStyle | Returns: the new stylethe style to apply to style, final String the specification spec)Apply style specification. |
private AttributedStyle | |
private AttributedStyle | Returns: The new styleThe style to apply to style, final String Color specification: spec)<color-mode>:<color-name> Apply color styles specification. |
private AttributedStyle | Returns: the new stylethe style to apply to style, final String the named style name)Apply default named styles. |
private AttributedStyle | Returns: the new stylethe style to apply to style, final String the specification spec)Apply source-referenced named style. |
private static Integer | |
private static Integer | |
public AttributedStyle | |
public AttributedStyle |
source | back to summary |
---|---|
private final Function<String, String> source |
StyleResolver | back to summary |
---|---|
public StyleResolver(final Function<String, String> source) |
apply | back to summary |
---|---|
private AttributedStyle apply(AttributedStyle style, final String spec) Apply style specification.
|
applyAnsi | back to summary |
---|---|
private AttributedStyle applyAnsi(final AttributedStyle style, final String spec) |
applyColor | back to summary |
---|---|
private AttributedStyle applyColor(final AttributedStyle style, final String spec) Apply color styles specification.
|
applyNamed | back to summary |
---|---|
private AttributedStyle applyNamed(final AttributedStyle style, final String name) Apply default named styles.
|
applyReference | back to summary |
---|---|
private AttributedStyle applyReference(final AttributedStyle style, final String spec) Apply source-referenced named style.
|
color | back to summary |
---|---|
private static Integer color(String name) Returns the color identifier for the given name.
Bright color can be specified with:
Full xterm256 color can be specified with: |
colorRgb | back to summary |
---|---|
private static Integer colorRgb(String name) Returns the RGB color for the given name.
Bright color can be specified with:
Full xterm256 color can be specified with: |
resolve | back to summary |
---|---|
public AttributedStyle resolve(final String spec) Resolve the given style specification.
If for some reason the specification is invalid, then
|
resolve | back to summary |
---|---|
public AttributedStyle resolve(final String spec, final String defaultSpec) Resolve the given style specification.
If this resolves to
|