org.openbp.swing.components.treetable.resize
Class FullVisibleConstraint

java.lang.Object
  extended by org.openbp.swing.components.treetable.resize.ColumnSizeConstraint
      extended by org.openbp.swing.components.treetable.resize.FullVisibleConstraint

public class FullVisibleConstraint
extends ColumnSizeConstraint

Constrain to set column that should be fully visible.

Author:
Baumgartner Michael

Field Summary
 
Fields inherited from class org.openbp.swing.components.treetable.resize.ColumnSizeConstraint
absoluteMinSize, columnSizes, MAX, MIN, minSizeOfColumns, PREFERRED, treeColumnMaxWidth
 
Constructor Summary
FullVisibleConstraint(boolean[] visible)
          Constructor.
 
Method Summary
 void calculateColumnSizes(JTreeTable treetable)
          Calculates the size of each column in the tree table.
 
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

FullVisibleConstraint

public FullVisibleConstraint(boolean[] visible)
Constructor.

Parameters:
visible - Array with flag, whether to show the column full or nor
Method Detail

calculateColumnSizes

public void calculateColumnSizes(JTreeTable treetable)
Description copied from class: ColumnSizeConstraint
Calculates the size of each column in the tree table. The results can be queried by the ColumnSizeConstraint.getMinWidthOfColumn(int), ColumnSizeConstraint.getMaxWidthOfColumn(int) and ColumnSizeConstraint.getPreferredWidthOfColumn(int). The sizes don't change until the method is re-executed.

Overrides:
calculateColumnSizes in class ColumnSizeConstraint
Parameters:
treetable - The treetable whose columns are to be resized


Copyright © 2011. All Rights Reserved.