|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.text.Chunk
org.crsh.text.Style
org.crsh.text.Style.Composite
public static final class Style.Composite
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.crsh.text.Style |
|---|
Style.Composite |
| Field Summary | |
|---|---|
protected Color |
background
. |
protected Boolean |
blink
. |
protected Boolean |
bold
. |
protected Color |
foreground
. |
protected Boolean |
underline
. |
| Fields inherited from class org.crsh.text.Style |
|---|
reset |
| Constructor Summary | |
|---|---|
private |
Style.Composite(Boolean bold,
Boolean underline,
Boolean blink,
Color foreground,
Color background)
|
| Method Summary | |
|---|---|
Style.Composite |
background(Color value)
|
Style.Composite |
bg(Color value)
|
Style.Composite |
blink()
|
Style.Composite |
blink(Boolean value)
|
Style.Composite |
bold()
|
Style.Composite |
bold(Boolean value)
|
private static boolean |
color(Appendable appendable,
Color color,
char base,
boolean append)
|
private static boolean |
decoration(Appendable appendable,
String on,
String off,
Boolean value,
boolean append)
|
Style.Composite |
decoration(Decoration decoration)
|
Style.Composite |
fg(Color color)
|
Style.Composite |
foreground(Color color)
|
Color |
getBackground()
|
Boolean |
getBlink()
|
Boolean |
getBold()
|
Color |
getForeground()
|
Boolean |
getUnderline()
|
Style |
merge(Style s)
|
String |
toString()
|
Style.Composite |
underline()
|
Style.Composite |
underline(Boolean value)
|
void |
writeAnsiTo(Appendable appendable)
|
| Methods inherited from class org.crsh.text.Style |
|---|
style, style, style, style, style, style, style, toAnsiSequence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Boolean bold
protected final Boolean underline
protected final Boolean blink
protected final Color foreground
protected final Color background
| Constructor Detail |
|---|
private Style.Composite(Boolean bold,
Boolean underline,
Boolean blink,
Color foreground,
Color background)
| Method Detail |
|---|
public Style.Composite fg(Color color)
public Style.Composite foreground(Color color)
public Style.Composite bg(Color value)
public Style.Composite background(Color value)
public Style.Composite bold()
public Style.Composite underline()
public Style.Composite blink()
public Style.Composite bold(Boolean value)
public Style.Composite underline(Boolean value)
public Style.Composite blink(Boolean value)
public Style.Composite decoration(Decoration decoration)
public Boolean getBold()
public Boolean getUnderline()
public Boolean getBlink()
public Color getForeground()
public Color getBackground()
public Style merge(Style s)
throws NullPointerException
merge in class StyleNullPointerExceptionpublic String toString()
toString in class Style
private static boolean decoration(Appendable appendable,
String on,
String off,
Boolean value,
boolean append)
throws IOException
IOException
private static boolean color(Appendable appendable,
Color color,
char base,
boolean append)
throws IOException
IOException
public void writeAnsiTo(Appendable appendable)
throws IOException
writeAnsiTo in class StyleIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||