org.crsh.text
Class Style.Composite
java.lang.Object
org.crsh.text.Style
org.crsh.text.Style.Composite
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- Style
public static final class Style.Composite
- extends Style
- See Also:
- Serialized Form
Fields inherited from class org.crsh.text.Style |
reset |
bold
protected final Boolean bold
- .
underline
protected final Boolean underline
- .
blink
protected final Boolean blink
- .
foreground
protected final Color foreground
- .
background
protected final Color background
- .
Style.Composite
private Style.Composite(Boolean bold,
Boolean underline,
Boolean blink,
Color foreground,
Color background)
fg
public Style.Composite fg(Color color)
foreground
public Style.Composite foreground(Color color)
bg
public Style.Composite bg(Color value)
background
public Style.Composite background(Color value)
bold
public Style.Composite bold()
underline
public Style.Composite underline()
blink
public Style.Composite blink()
bold
public Style.Composite bold(Boolean value)
underline
public Style.Composite underline(Boolean value)
blink
public Style.Composite blink(Boolean value)
decoration
public Style.Composite decoration(Decoration decoration)
getBold
public Boolean getBold()
getUnderline
public Boolean getUnderline()
getBlink
public Boolean getBlink()
getForeground
public Color getForeground()
getBackground
public Color getBackground()
merge
public Style merge(Style s)
throws NullPointerException
- Specified by:
merge
in class Style
- Throws:
NullPointerException
toString
public String toString()
- Specified by:
toString
in class Style
decoration
private static boolean decoration(Appendable appendable,
String on,
String off,
Boolean value,
boolean append)
throws IOException
- Throws:
IOException
color
private static boolean color(Appendable appendable,
Color color,
char base,
boolean append)
throws IOException
- Throws:
IOException
writeAnsiTo
public void writeAnsiTo(Appendable appendable)
throws IOException
- Specified by:
writeAnsiTo
in class Style
- Throws:
IOException
Copyright © 2015 eXo Platform SAS. All Rights Reserved.