|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.text.ChunkAdapter
public class ChunkAdapter
| Field Summary | |
|---|---|
private LinkedList<Object> |
buffer
. |
private RenderAppendable |
out
. |
private Renderable |
renderable
. |
| Constructor Summary | |
|---|---|
ChunkAdapter(ScreenContext<Chunk> out)
|
|
| Method Summary | |
|---|---|
void |
flush()
|
Class<Object> |
getConsumedType()
Returns the class of the element generic type. |
int |
getHeight()
Returns the screen height in chars. |
int |
getWidth()
Returns the screen width in chars. |
void |
provide(Object element)
Provide an element. |
void |
send()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final LinkedList<Object> buffer
private Renderable renderable
private final RenderAppendable out
| Constructor Detail |
|---|
public ChunkAdapter(ScreenContext<Chunk> out)
| Method Detail |
|---|
public int getWidth()
ScreenContext
getWidth in interface ScreenContext<Object>public int getHeight()
ScreenContext
getHeight in interface ScreenContext<Object>public Class<Object> getConsumedType()
Consumer
getConsumedType in interface Consumer<Object>
public void provide(Object element)
throws IOException
Consumer
provide in interface Consumer<Object>element - the provided element
IOException
public void flush()
throws IOException
flush in interface FlushableIOException
public void send()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||