org.crsh.text
Class Renderer.Composite

java.lang.Object
  extended by org.crsh.text.Renderer
      extended by org.crsh.text.Renderer.Composite
Enclosing class:
Renderer

private static class Renderer.Composite
extends Renderer


Field Summary
private  int actualWidth
          .
private  int minWidth
          .
private  Iterable<? extends Renderer> renderers
          .
 
Constructor Summary
private Renderer.Composite(Iterable<? extends Renderer> renderers)
           
 
Method Summary
 int getActualWidth()
          Returns the element actual width.
 int getMinWidth()
          Returns the element minimum width.
 LineReader renderer(int width)
          Create a renderer for the specified width or return null if the element does not provide any output.
 
Methods inherited from class org.crsh.text.Renderer
compose, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderers

private final Iterable<? extends Renderer> renderers
.


actualWidth

private final int actualWidth
.


minWidth

private final int minWidth
.

Constructor Detail

Renderer.Composite

private Renderer.Composite(Iterable<? extends Renderer> renderers)
Method Detail

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

renderer

public LineReader renderer(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:
renderer in class Renderer
Parameters:
width - the width the width
Returns:
the renderer


Copyright © 2012 eXo Platform SAS. All Rights Reserved.