public class RenderAppendable extends java.lang.Object implements java.lang.Appendable, ScreenContext
| Constructor and Description |
|---|
RenderAppendable(ScreenContext context) |
| Modifier and Type | Method and Description |
|---|---|
RenderAppendable |
append(char c) |
RenderAppendable |
append(java.lang.CharSequence csq) |
RenderAppendable |
append(java.lang.CharSequence csq,
int start,
int end) |
void |
enterStyle(Style.Composite style) |
void |
flush() |
java.lang.Class<Chunk> |
getConsumedType() |
int |
getHeight()
Returns the screen height in chars.
|
int |
getWidth()
Returns the screen width in chars.
|
Style.Composite |
leaveStyle() |
void |
styleOff() |
void |
styleOn() |
void |
write(Chunk chunk)
Write a chunk to the screen.
|
public RenderAppendable(ScreenContext context)
public void write(Chunk chunk) throws java.io.IOException
ScreenContextwrite in interface ScreenContextchunk - the chunkjava.io.IOException - any io exceptionpublic java.lang.Class<Chunk> getConsumedType()
public int getWidth()
ScreenContextgetWidth in interface ScreenContextpublic int getHeight()
ScreenContextgetHeight in interface ScreenContextpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOExceptionpublic RenderAppendable append(java.lang.CharSequence csq)
append in interface java.lang.Appendablepublic void enterStyle(Style.Composite style)
public Style.Composite leaveStyle()
public void styleOff()
public void styleOn()
public RenderAppendable append(java.lang.CharSequence csq, int start, int end)
append in interface java.lang.Appendablepublic RenderAppendable append(char c)
append in interface java.lang.AppendableCopyright © 2014 eXo Platform SAS. All Rights Reserved.