|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.text.RenderAppendable
public class RenderAppendable
| Field Summary | |
|---|---|
private ScreenContext |
context
. |
private LinkedList<Style.Composite> |
stack
. |
| Constructor Summary | |
|---|---|
RenderAppendable(ScreenContext context)
|
|
| Method Summary | |
|---|---|
RenderAppendable |
append(char c)
|
RenderAppendable |
append(CharSequence csq)
|
RenderAppendable |
append(CharSequence csq,
int start,
int end)
|
void |
enterStyle(Style.Composite style)
|
void |
flush()
|
private Boolean |
foo(Boolean last,
Boolean merged)
|
private Color |
foo(Color last,
Color merged,
Color def)
|
Class<Chunk> |
getConsumedType()
|
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()
|
private void |
safeAppend(Chunk chunk)
|
void |
styleOff()
|
void |
styleOn()
|
void |
write(Chunk chunk)
Write a chunk to the screen. |
| 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 |
|---|
private void safeAppend(Chunk chunk)
public void write(Chunk chunk)
throws IOException
ScreenContext
write in interface ScreenContextchunk - the chunk
IOException - any io exceptionpublic Class<Chunk> getConsumedType()
public int getWidth()
ScreenContext
getWidth in interface ScreenContextpublic int getHeight()
ScreenContext
getHeight in interface ScreenContext
public void flush()
throws IOException
flush in interface FlushableIOExceptionpublic RenderAppendable append(CharSequence csq)
append in interface Appendablepublic 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()
public RenderAppendable append(CharSequence csq,
int start,
int end)
append in interface Appendablepublic RenderAppendable append(char c)
append in interface Appendable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||