org.crsh.text.ui
Class RowLineRenderer
java.lang.Object
org.crsh.text.LineRenderer
org.crsh.text.ui.RowLineRenderer
-
class RowLineRenderer
- extends LineRenderer
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cols
private final List<LineRenderer> cols
-
.
style
private final Style.Composite style
-
.
leftCellPadding
final int leftCellPadding
-
.
rightCellPadding
final int rightCellPadding
-
.
separator
private final BorderStyle separator
-
.
RowLineRenderer
RowLineRenderer(RowElement row,
BorderStyle separator,
int leftCellPadding,
int rightCellPadding)
getSize
int getSize()
-
getCols
public List<LineRenderer> getCols()
-
getActualWidth
public int getActualWidth()
- Description copied from class:
LineRenderer
-
Returns the element actual width.
-
- Specified by:
getActualWidth
in class LineRenderer
-
- Returns:
- the actual width
getMinWidth
public int getMinWidth()
- Description copied from class:
LineRenderer
-
Returns the element minimum width.
-
- Specified by:
getMinWidth
in class LineRenderer
-
- Returns:
- the minimum width
getActualHeight
public int getActualHeight(int width)
- Description copied from class:
LineRenderer
-
Return the actual height for the specified with.
-
- Specified by:
getActualHeight
in class LineRenderer
-
- Parameters:
width
- the width
- Returns:
- the minimum height
getMinHeight
public int getMinHeight(int width)
- Description copied from class:
LineRenderer
-
Return the minimum height for the specified with.
-
- Specified by:
getMinHeight
in class LineRenderer
-
- Parameters:
width
- the width
- Returns:
- the actual height
renderer
LineReader renderer(int[] widths,
int height)
-
reader
public LineReader reader(int width)
- Description copied from class:
LineRenderer
-
Create a renderer for the specified width or return null if the element does not provide any output.
-
- Specified by:
reader
in class LineRenderer
-
- Parameters:
width
- the width
- Returns:
- the renderer
Copyright © 2015 eXo Platform SAS. All Rights Reserved.