org.crsh.text.ui
Class LabelReader

java.lang.Object
  extended by org.crsh.text.ui.LabelReader
All Implemented Interfaces:
LineReader

 class LabelReader
extends Object
implements LineReader


Field Summary
private  LabelElement element
          .
private  int height
          .
private  int index
          .
private  Pair<Integer,Integer>[] lines
          .
private  int width
          .
 
Constructor Summary
LabelReader(LabelElement element, Pair<Integer,Integer>[] lines, int width, int height)
           
 
Method Summary
 boolean hasLine()
          Returns true if the renderer has a next line to render.
 void renderLine(RenderAppendable to)
          Renders the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element

private final LabelElement element
.


lines

private final Pair<Integer,Integer>[] lines
.


width

private final int width
.


height

private final int height
.


index

private int index
.

Constructor Detail

LabelReader

LabelReader(LabelElement element,
            Pair<Integer,Integer>[] lines,
            int width,
            int height)
Method Detail

hasLine

public boolean hasLine()
Description copied from interface: LineReader
Returns true if the renderer has a next line to render.

Specified by:
hasLine in interface LineReader
Returns:
when there is at least a next line to read

renderLine

public void renderLine(RenderAppendable to)
Description copied from interface: LineReader
Renders the element.

Specified by:
renderLine in interface LineReader
Parameters:
to - the buffer for rendering


Copyright © 2014 eXo Platform SAS. All Rights Reserved.