org.crsh.text.ui
Class ColumnLayout.Weighted
java.lang.Object
org.crsh.text.ui.ColumnLayout
org.crsh.text.ui.ColumnLayout.Weighted
- Enclosing class:
- ColumnLayout
public static class ColumnLayout.Weighted
- extends ColumnLayout
|
Field Summary |
private int[] |
weights
The weights. |
|
Method Summary |
(package private) int[] |
compute(Border border,
int width,
int[] widths,
int[] minWidths)
|
int[] |
getWeights()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
weights
private final int[] weights
- The weights.
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
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.