|
||||||||||
| 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 IOContext<Chunk> |
context
. |
private LinkedList<Style.Composite> |
stack
. |
| Constructor Summary | |
|---|---|
RenderAppendable(IOContext<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)
|
int |
getHeight()
Returns the term height in chars. |
private Style.Composite |
getMerged()
Compute the current merged style. |
int |
getWidth()
Returns the term 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 IOContext<Chunk> context
private LinkedList<Style.Composite> stack
| Constructor Detail |
|---|
public RenderAppendable(IOContext<Chunk> context)
| Method Detail |
|---|
private void safeAppend(Chunk chunk)
public int getWidth()
IOContext
getWidth in interface IOContext<Chunk>public int getHeight()
IOContext
getHeight in interface IOContext<Chunk>
public void provide(Chunk element)
throws IOException
Pipe
provide in interface Pipe<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 | |||||||||