|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.clearthought.layout.TableLayout
org.tbee.swing.tablelayout.TableLayoutSpaced
org.tbee.swing.tablelayout.TableLayoutSpacer
public class TableLayoutSpacer
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class info.clearthought.layout.TableLayout |
|---|
info.clearthought.layout.TableLayout.Entry |
| Field Summary | |
|---|---|
static 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(String columns,
String rows)
Setup TableLayout |
|
| Method Summary | |
|---|---|
void |
addSpacers()
create and add spacer buttons |
void |
invalidateLayout(Container parent)
remember the iContainer we're layouting |
static void |
main(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 |
|---|
public static final String SOURCECODE_VERSION
| Constructor Detail |
|---|
public TableLayoutSpacer()
public TableLayoutSpacer(String columns,
String rows)
columns - rows -
public TableLayoutSpacer(double[] columns,
double[] rows)
columns - rows - public TableLayoutSpacer(double[][] columnsAndRows)
columnsAndRows - | Method Detail |
|---|
public void invalidateLayout(Container parent)
invalidateLayout in interface LayoutManager2invalidateLayout in class info.clearthought.layout.TableLayoutpublic void addSpacers()
public static void main(String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||