org.crsh.text.ui
Class RowRenderer

java.lang.Object
  extended by org.crsh.text.Renderer
      extended by org.crsh.text.ui.RowRenderer

 class RowRenderer
extends Renderer


Field Summary
private  List<Renderer> cols
          .
(package private)  int leftCellPadding
          .
(package private)  int rightCellPadding
          .
private  BorderStyle separator
          .
private  Style.Composite style
          .
 
Fields inherited from class org.crsh.text.Renderer
NULL
 
Constructor Summary
RowRenderer(RowElement row, BorderStyle separator, int leftCellPadding, int rightCellPadding)
           
 
Method Summary
 int getActualHeight(int width)
          Return the actual height for the specified with.
 int getActualWidth()
          Returns the element actual width.
 List<Renderer> getCols()
           
 int getMinHeight(int width)
          Return the minimum height for the specified with.
 int getMinWidth()
          Returns the element minimum width.
(package private)  int getSize()
           
 LineReader reader(int width)
          Create a renderer for the specified width or return null if the element does not provide any output.
(package private)  LineReader renderer(int[] widths, int height)
           
 
Methods inherited from class org.crsh.text.Renderer
reader, render, vertical
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cols

private final List<Renderer> cols
.


style

private final Style.Composite style
.


leftCellPadding

final int leftCellPadding
.


rightCellPadding

final int rightCellPadding
.


separator

private final BorderStyle separator
.

Constructor Detail

RowRenderer

RowRenderer(RowElement row,
            BorderStyle separator,
            int leftCellPadding,
            int rightCellPadding)
Method Detail

getSize

int getSize()

getCols

public List<Renderer> getCols()

getActualWidth

public int getActualWidth()
Description copied from class: Renderer
Returns the element actual width.

Specified by:
getActualWidth in class Renderer
Returns:
the actual width

getMinWidth

public int getMinWidth()
Description copied from class: Renderer
Returns the element minimum width.

Specified by:
getMinWidth in class Renderer
Returns:
the minimum width

getActualHeight

public int getActualHeight(int width)
Description copied from class: Renderer
Return the actual height for the specified with.

Specified by:
getActualHeight in class Renderer
Parameters:
width - the width
Returns:
the minimum height

getMinHeight

public int getMinHeight(int width)
Description copied from class: Renderer
Return the minimum height for the specified with.

Specified by:
getMinHeight in class Renderer
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: Renderer
Create a renderer for the specified width or return null if the element does not provide any output.

Specified by:
reader in class Renderer
Parameters:
width - the width
Returns:
the renderer


Copyright © 2014 eXo Platform SAS. All Rights Reserved.