|
||||||||||
| 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
. |
| Fields inherited from class org.crsh.text.Renderer |
|---|
NULL |
| Constructor Summary | |
|---|---|
private |
Renderer.Composite(Iterable<? extends Renderer> renderers)
|
| Method Summary | |
|---|---|
int |
getActualHeight(int width)
Return the actual height for the specified with. |
int |
getActualWidth()
Returns the element actual width. |
int |
getMinHeight(int width)
Return the minimum height for the specified with. |
int |
getMinWidth()
Returns the element minimum width. |
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. |
| Methods inherited from class org.crsh.text.Renderer |
|---|
render, vertical |
| 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 int getActualHeight(int width)
Renderer
getActualHeight in class Rendererwidth - the width
public int getMinHeight(int width)
Renderer
getMinHeight in class Rendererwidth - the width
public LineReader reader(int width,
int height)
RendererRenderer.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.
reader in class Rendererwidth - the widthheight - the height
public LineReader reader(int width)
Renderer
reader in class Rendererwidth - the width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||