|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.text.Renderer
public abstract class Renderer
Something that can be rendered within a context.
| Nested Class Summary | |
|---|---|
private static class |
Renderer.Composite
|
| Constructor Summary | |
|---|---|
Renderer()
|
|
| Method Summary | |
|---|---|
static Renderer |
compose(Iterable<Renderer> renderers)
|
abstract int |
getActualWidth()
Returns the element actual width. |
abstract int |
getMinWidth()
Returns the element minimum width. |
void |
render(RenderAppendable out)
Renders this object to the provided output. |
abstract LineReader |
renderer(int width)
Create a renderer for the specified width or return null if the element does not provide any output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Renderer()
| Method Detail |
|---|
public static Renderer compose(Iterable<Renderer> renderers)
public abstract int getActualWidth()
public abstract int getMinWidth()
public abstract LineReader renderer(int width)
width - the width the width
public final void render(RenderAppendable out)
out - the output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||