org.tbee.swing.tablelayout
Class TableLayoutSpacer

java.lang.Object
  extended by info.clearthought.layout.TableLayout
      extended by org.tbee.swing.tablelayout.TableLayoutSpaced
          extended by org.tbee.swing.tablelayout.TableLayoutSpacer
All Implemented Interfaces:
info.clearthought.layout.TableLayoutConstants, java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable

public class TableLayoutSpacer
extends TableLayoutSpaced

This class extends the TableLayoutSpaced with dynamic resize features: In the top and left margins, at exactly the inter column/row spacings, hidden buttons are placed, but they highlight when the mouse moves over. When these buttons are clicked, a slider is shown which allows resizing of the areas in a SplitPane alike setup. Important is to note that: - relative columns (0 .. 1.0) remain relative - absolute columns (1.0 ...) remain absolute - preferred columns become absolute - fill columns remain fill (and as such will not be set to a new value) The usage is quite simple: instead of instantiating TableLayout, instatiate this class.

Version:
$Revision: 1.9 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class info.clearthought.layout.TableLayout
info.clearthought.layout.TableLayout.Entry
 
Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Fields inherited from class info.clearthought.layout.TableLayout
C, checkForComponentOrientationSupport, crOffset, crSize, crSpec, defaultSize, dirty, hGap, list, methodGetComponentOrientation, oldHeight, oldWidth, R, vGap
 
Fields inherited from interface info.clearthought.layout.TableLayoutConstants
BOTTOM, CENTER, FILL, FULL, LEADING, LEFT, MINIMUM, PREFERRED, RIGHT, TOP, TRAILING
 
Constructor Summary
TableLayoutSpacer()
          Setup TableLayout
TableLayoutSpacer(double[][] columnsAndRows)
           
TableLayoutSpacer(double[] columns, double[] rows)
          Setup TableLayout
TableLayoutSpacer(java.lang.String columns, java.lang.String rows)
          Setup TableLayout
 
Method Summary
 void addSpacers()
          create and add spacer buttons
 void invalidateLayout(java.awt.Container parent)
          remember the iContainer we're layouting
static void main(java.lang.String[] args)
          test code
 
Methods inherited from class org.tbee.swing.tablelayout.TableLayoutSpaced
addLayoutComponent, getActualColumn, getActualColumnWidth, getActualNumColumn, getActualNumRow, getActualRow, getActualRowHeight, getColumn, getColumn, getColumnId, getColumnWidth, getNumColumn, getNumRow, getRow, getRow, getRowHeight, getRowId, setActualColumn, setActualRow, setBottomMargin, setColumn, setColumn, setColumnId, setInterColumnSpacing, setInterColumnSpacing, setInterRowSpacing, setInterRowSpacing, setLeftMargin, setMargin, setRightMargin, setRow, setRow, setRowId, setTopMargin
 
Methods inherited from class info.clearthought.layout.TableLayout
addLayoutComponent, assignAbsoluteSize, assignFillSize, assignPrefMinSize, assignRelativeSize, calculateLayoutSize, calculateLayoutSize, calculateOffset, calculateSize, calculateSizeAndOffset, deleteColumn, deleteCr, deleteRow, getComponentOrientation, getConstraints, getHGap, getInvalidEntry, getLayoutAlignmentX, getLayoutAlignmentY, getOverlappingEntry, getVGap, init, insertColumn, insertCr, insertRow, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setConstraints, setCr, setCr, setHGap, setVGap, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

TableLayoutSpacer

public TableLayoutSpacer()
Setup TableLayout


TableLayoutSpacer

public TableLayoutSpacer(java.lang.String columns,
                         java.lang.String rows)
Setup TableLayout

Parameters:
columns -
rows -

TableLayoutSpacer

public TableLayoutSpacer(double[] columns,
                         double[] rows)
Setup TableLayout

Parameters:
columns -
rows -

TableLayoutSpacer

public TableLayoutSpacer(double[][] columnsAndRows)
Parameters:
columnsAndRows -
Method Detail

invalidateLayout

public void invalidateLayout(java.awt.Container parent)
remember the iContainer we're layouting

Specified by:
invalidateLayout in interface java.awt.LayoutManager2
Overrides:
invalidateLayout in class info.clearthought.layout.TableLayout

addSpacers

public void addSpacers()
create and add spacer buttons


main

public static void main(java.lang.String[] args)
test code

Parameters:
args -


Copyright © 2010 KnowledgePlaza. All Rights Reserved.