org.crsh.text.ui
Class ColumnLayout

java.lang.Object
  extended by org.crsh.text.ui.ColumnLayout
Direct Known Subclasses:
ColumnLayout.Weighted

public abstract class ColumnLayout
extends Object

The columns layout computes the width of the columns in a table.


Nested Class Summary
static class ColumnLayout.Weighted
           
 
Field Summary
private static ColumnLayout RTL
           
 
Constructor Summary
ColumnLayout()
           
 
Method Summary
(package private) abstract  int[] compute(Border border, int width, int[] widths, int[] minWidths)
           
static ColumnLayout rightToLeft()
           
static ColumnLayout weighted(int... weights)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RTL

private static final ColumnLayout RTL
Constructor Detail

ColumnLayout

public ColumnLayout()
Method Detail

rightToLeft

public static ColumnLayout rightToLeft()

weighted

public static ColumnLayout weighted(int... weights)
                             throws NullPointerException,
                                    IllegalArgumentException
Throws:
NullPointerException
IllegalArgumentException

compute

abstract int[] compute(Border border,
                       int width,
                       int[] widths,
                       int[] minWidths)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.