|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.text.Renderer
org.crsh.text.Renderer.Composite
private static class Renderer.Composite
| Field Summary | |
|---|---|
private int |
actualWidth
. |
private int |
minWidth
. |
private Iterable<? extends Renderer> |
renderers
. |
| Constructor Summary | |
|---|---|
private |
Renderer.Composite(Iterable<? extends Renderer> renderers)
|
| Method Summary | |
|---|---|
int |
getActualWidth()
Returns the element actual width. |
int |
getMinWidth()
Returns the element minimum width. |
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 org.crsh.text.Renderer |
|---|
compose, render |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Iterable<? extends Renderer> renderers
private final int actualWidth
private final int minWidth
| Constructor Detail |
|---|
private Renderer.Composite(Iterable<? extends Renderer> renderers)
| Method Detail |
|---|
public int getActualWidth()
Renderer
getActualWidth in class Rendererpublic int getMinWidth()
Renderer
getMinWidth in class Rendererpublic LineReader renderer(int width)
Renderer
renderer in class Rendererwidth - the width the width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||