|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.text.RenderAppendable
public class RenderAppendable
Field Summary | |
---|---|
private ScreenContext |
context
. |
private LinkedList<Style.Composite> |
stack
. |
Constructor Summary | |
---|---|
RenderAppendable(ScreenContext context)
|
Method Summary | |
---|---|
Screenable |
append(char c)
|
RenderAppendable |
append(CharSequence s)
|
Screenable |
append(CharSequence csq,
int start,
int end)
|
Screenable |
append(Style style)
|
Screenable |
cls()
|
void |
enterStyle(Style.Composite style)
|
void |
flush()
Flush the stream. |
private Boolean |
foo(Boolean last,
Boolean merged)
|
private Color |
foo(Color last,
Color merged,
Color def)
|
int |
getHeight()
Returns the screen height in chars. |
private Style.Composite |
getMerged()
Compute the current merged style. |
int |
getWidth()
Returns the screen width in chars. |
Style.Composite |
leaveStyle()
|
void |
styleOff()
|
void |
styleOn()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final ScreenContext context
private LinkedList<Style.Composite> stack
Constructor Detail |
---|
public RenderAppendable(ScreenContext context)
Method Detail |
---|
public RenderAppendable append(CharSequence s)
append
in interface Appendable
public Screenable append(char c)
append
in interface Appendable
public Screenable append(CharSequence csq, int start, int end)
append
in interface Appendable
public Screenable append(Style style)
append
in interface Screenable
public Screenable cls()
cls
in interface Screenable
public int getWidth()
ScreenContext
getWidth
in interface ScreenContext
public int getHeight()
ScreenContext
getHeight
in interface ScreenContext
public void flush() throws IOException
ScreenContext
flush
in interface ScreenContext
IOException
- any io exceptionpublic void enterStyle(Style.Composite style)
public Style.Composite leaveStyle()
private Style.Composite getMerged()
private Boolean foo(Boolean last, Boolean merged)
private Color foo(Color last, Color merged, Color def)
public void styleOff()
public void styleOn()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |