|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.text.Renderer org.crsh.text.ui.TableRenderer
class TableRenderer
Field Summary | |
---|---|
(package private) BorderStyle |
border . |
(package private) Layout |
columnLayout . |
private TableRowRenderer |
head . |
(package private) int |
leftCellPadding Cell padding left. |
(package private) Overflow |
overflow . |
(package private) int |
rightCellPadding Cell padding right. |
(package private) Layout |
rowLayout . |
(package private) BorderStyle |
separator . |
(package private) Style.Composite |
style . |
private TableRowRenderer |
tail . |
Fields inherited from class org.crsh.text.Renderer |
---|
NULL |
Constructor Summary | |
---|---|
TableRenderer(TableElement table) |
Method Summary | |
---|---|
int |
getActualHeight(int width) Return the actual height for the specified with. |
int |
getActualWidth() Returns the element actual width. |
private int |
getMaxColSize() |
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 |
---|
final Layout columnLayout
final Layout rowLayout
final BorderStyle border
final BorderStyle separator
final Overflow overflow
final Style.Composite style
final int leftCellPadding
final int rightCellPadding
private TableRowRenderer head
private TableRowRenderer tail
Constructor Detail |
---|
TableRenderer(TableElement table)
Method Detail |
---|
private int getMaxColSize()
public int getMinWidth()
Renderer
getMinWidth
in class Renderer
public int getActualWidth()
Renderer
getActualWidth
in class Renderer
public int getActualHeight(int width)
Renderer
getActualHeight
in class Renderer
width
- the widthpublic int getMinHeight(int width)
Renderer
getMinHeight
in class Renderer
width
- the widthpublic LineReader reader(int width)
Renderer
reader
in class Renderer
width
- the widthpublic LineReader reader(int width, int height)
Renderer
Renderer.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 Renderer
width
- the widthheight
- the height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |