public abstract class Style extends Object implements Serializable
reset
style. Styles can be composed together to form a new
style style.merge(other)
.Modifier and Type | Class and Description |
---|---|
static class |
Style.Composite |
Modifier and Type | Field and Description |
---|---|
private static Style.Composite[][][][][] |
ALL
[bold][underline][blink][foreground][background].
|
private static Boolean[] |
BOOLEANS
.
|
private static Color[] |
COLORS
.
|
static Style |
reset |
Constructor and Description |
---|
Style() |
Modifier and Type | Method and Description |
---|---|
abstract Style |
merge(Style s) |
static Style.Composite |
style()
Create a new blank style.
|
static Style.Composite |
style(Boolean bold,
Boolean underline,
Boolean blink,
Color foreground,
Color background) |
static Style.Composite |
style(Color foreground) |
static Style.Composite |
style(Color foreground,
Color background) |
static Style.Composite |
style(Decoration decoration) |
static Style.Composite |
style(Decoration decoration,
Color foreground) |
static Style.Composite |
style(Decoration decoration,
Color foreground,
Color background) |
CharSequence |
toAnsiSequence() |
abstract String |
toString() |
abstract void |
writeAnsiTo(Appendable appendable) |
private static final Style.Composite[][][][][] ALL
public Style()
public static Style.Composite style(Color foreground)
public static Style.Composite style(Color foreground, Color background)
public static Style.Composite style(Decoration decoration, Color foreground, Color background)
public static Style.Composite style(Boolean bold, Boolean underline, Boolean blink, Color foreground, Color background)
public static Style.Composite style()
public static Style.Composite style(Decoration decoration)
public static Style.Composite style(Decoration decoration, Color foreground)
public abstract Style merge(Style s) throws NullPointerException
NullPointerException
public CharSequence toAnsiSequence()
public abstract void writeAnsiTo(Appendable appendable) throws IOException
IOException
Copyright © 2015 eXo Platform SAS. All Rights Reserved.