|
||||||||||
| 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<Chunk> |
context
. |
private LinkedList<Style.Composite> |
stack
. |
| Constructor Summary | |
|---|---|
RenderAppendable(ScreenContext<Chunk> 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()
Returns the class of the element generic type. |
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 |
provide(Chunk element)
Provide an element. |
private void |
safeAppend(Chunk chunk)
|
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<Chunk> context
private LinkedList<Style.Composite> stack
| Constructor Detail |
|---|
public RenderAppendable(ScreenContext<Chunk> context)
| Method Detail |
|---|
private void safeAppend(Chunk chunk)
public Class<Chunk> getConsumedType()
Consumer
getConsumedType in interface Consumer<Chunk>public int getWidth()
ScreenContext
getWidth in interface ScreenContext<Chunk>public int getHeight()
ScreenContext
getHeight in interface ScreenContext<Chunk>
public void provide(Chunk element)
throws IOException
Consumer
provide in interface Consumer<Chunk>element - the provided element
IOException
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 | |||||||||