|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.text.LineRenderer
public abstract class LineRenderer
A line oriented renderer.
Nested Class Summary | |
---|---|
private static class |
LineRenderer.Composite
|
Field Summary | |
---|---|
static LineRenderer |
NULL
|
Constructor Summary | |
---|---|
LineRenderer()
|
Method Summary | |
---|---|
abstract int |
getActualHeight(int width)
Return the actual height for the specified with. |
abstract int |
getActualWidth()
Returns the element actual width. |
abstract int |
getMinHeight(int width)
Return the minimum height for the specified with. |
abstract int |
getMinWidth()
Returns the element minimum width. |
abstract LineReader |
reader(int width)
Create a renderer for the specified width or return null if the element does not provide any output. |
LineReader |
reader(int width,
int height)
Create a renderer for the specified width and height or return null if the element does not provide any output for the specified dimensions. |
void |
render(RenderAppendable out)
Renders this object to the provided output. |
static LineRenderer |
vertical(Iterable<? extends LineRenderer> renderers)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final LineRenderer NULL
Constructor Detail |
---|
public LineRenderer()
Method Detail |
---|
public static LineRenderer vertical(Iterable<? extends LineRenderer> renderers)
public abstract int getActualWidth()
public abstract int getMinWidth()
public abstract int getMinHeight(int width)
width
- the width
public abstract int getActualHeight(int width)
width
- the width
public LineReader reader(int width, int height)
reader(int)
method when the
height
argument is not positive otherwise it returns null. Subclasses should override this method
when they want to provide content that can adapts to the specified height.
width
- the widthheight
- the height
public abstract LineReader reader(int width)
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 |