|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.swing.components.treetable.resize.ColumnSizeConstraint
org.openbp.swing.components.treetable.resize.RatioConstraint
public class RatioConstraint
Constrain to divide the space the columns on a ratio. If there is no ratio, the columns are divided evenly.
| Field Summary |
|---|
| Fields inherited from class org.openbp.swing.components.treetable.resize.ColumnSizeConstraint |
|---|
absoluteMinSize, columnSizes, MAX, MIN, minSizeOfColumns, PREFERRED, treeColumnMaxWidth |
| Constructor Summary | |
|---|---|
RatioConstraint(boolean firstColumnFull)
Constructor. |
|
RatioConstraint(int[] ratio,
boolean firstColumnFull)
Constructor. |
|
| Method Summary | |
|---|---|
void |
calculateColumnSizes(JTreeTable treetable)
Initialises the arrays needed for the calculations. |
| Methods inherited from class org.openbp.swing.components.treetable.resize.ColumnSizeConstraint |
|---|
addMaxSizeForColumn, adjustMaximalWidthOfColumn, adjustPreferredToWidth, determineMaxColumnWidth, determineMaxTreeColumnWidth, getAbsoluteMinimum, getMaxWidthOfColumn, getMinWidthOfColumn, getPreferredWidthOfColumn, isRecalculateNeeded, setAboluteMinimun, setColumnWidth, setMinimumOfColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RatioConstraint(boolean firstColumnFull)
firstColumnFull - Flag to show the fist column,
true Set the size to the maximal width of the column
false all columns are evenly distributed
public RatioConstraint(int[] ratio,
boolean firstColumnFull)
ratio - The ratio for the columns. If the first column is
shown fully, then the first ratio is ignored. If there are not
enought ratios for the table, the other get a ratio of one.
All ratios tha exceed the column count are ignored.firstColumnFull - Flag to show the fist column,| Method Detail |
|---|
public void calculateColumnSizes(JTreeTable treetable)
calculateColumnSizes in class ColumnSizeConstrainttreetable - The treetable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||