org.crsh.text.ui
Class ColumnLayout.Weighted

java.lang.Object
  extended by org.crsh.text.ui.ColumnLayout
      extended by org.crsh.text.ui.ColumnLayout.Weighted
Enclosing class:
ColumnLayout

public static class ColumnLayout.Weighted
extends ColumnLayout


Nested Class Summary
 
Nested classes/interfaces inherited from class org.crsh.text.ui.ColumnLayout
ColumnLayout.Weighted
 
Field Summary
private  int[] weights
          The weights.
 
Constructor Summary
private ColumnLayout.Weighted(int... weights)
          Create a new weighted layout.
 
Method Summary
(package private)  int[] compute(Border border, int width, int[] widths, int[] minWidths)
           
 int[] getWeights()
           
 
Methods inherited from class org.crsh.text.ui.ColumnLayout
rightToLeft, weighted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weights

private final int[] weights
The weights.

Constructor Detail

ColumnLayout.Weighted

private ColumnLayout.Weighted(int... weights)
                       throws NullPointerException,
                              IllegalArgumentException
Create a new weighted layout.

Parameters:
weights - the weights
Throws:
NullPointerException - if the weights argument is null
IllegalArgumentException - if any weight is negative
Method Detail

getWeights

public int[] getWeights()

compute

int[] compute(Border border,
              int width,
              int[] widths,
              int[] minWidths)
Specified by:
compute in class ColumnLayout


Copyright © 2012 eXo Platform SAS. All Rights Reserved.