|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.wizard.WizardColumnModel
public class WizardColumnModel
This class offers an interface to the tree of a SplitDockStation
that handles as if the tree
would build a table.
Constructor Summary | |
---|---|
WizardColumnModel(WizardSplitDockStation station)
|
|
WizardColumnModel(WizardSplitDockStation station,
double factorW,
double factorH)
|
Method Summary | |
---|---|
protected int |
applyPersistentSizes(WizardNodeMap map,
boolean revalidate)
Updates the dividers of all Node s such that the actual size of the columns and cells results. |
bibliothek.gui.dock.station.split.Leaf[] |
getLastLeafOfColumns()
|
protected WizardNodeMap |
getMap()
Gets a map containing the current columns and cells. |
PersistentColumn[] |
getPersistentColumns()
|
Dimension |
getPreferredSize()
Gets the current preferred size of the entire WizardSplitDockStation |
boolean |
isHeaderLevel(bibliothek.gui.dock.station.split.SplitNode node)
|
boolean |
isHeaderLevel(bibliothek.gui.dock.station.split.SplitNode node,
boolean recursive)
|
void |
resetToPreferredSize(int index)
Updates the size of the index 'th column such that it has its preferred size. |
void |
resetToPreferredSizes()
Updates the size of each cell and column such that they met their preferred size. |
void |
setDivider(bibliothek.gui.dock.station.split.Divideable divideable,
double divider)
Called if the user changed the position of a dividier. |
void |
setFactors(double factorW,
double factorH)
|
void |
setPersistentColumns(bibliothek.gui.Dockable[][] columnsAndCells,
int[][] cellSizes,
int[] columnSizes)
Visits all PersistentColumn s and PersistentCell s and updates them according
to the values delivered to this method. |
void |
updateBounds(double x,
double y)
Updates the boundaries of all SplitNode s. |
protected void |
updateBounds(double x,
double y,
double width,
double height,
WizardNodeMap.Column column,
WizardNodeMap map)
Update the boundaries of the column column and all its children. |
protected void |
updateBounds(bibliothek.gui.dock.station.split.SplitNode node,
double x,
double y,
double width,
double height,
WizardNodeMap map)
Updates the boundaries of node and all its children. |
protected void |
updateBoundsRecursive(bibliothek.gui.dock.station.split.SplitNode node,
double x,
double y,
double width,
double height,
WizardNodeMap map)
Updates the boundaries of node and all its children. |
double |
validateColumnDivider(double divider)
Calculates the valid value of divider for the outermost column |
double |
validateDivider(double divider,
bibliothek.gui.dock.station.split.Leaf leaf)
Calculates the valid value of divider for leaf . |
double |
validateDivider(double divider,
bibliothek.gui.dock.station.split.Node node)
Calculates the valid value of divider for node . |
double |
validateDivider(WizardNodeMap.Column column,
double divider,
bibliothek.gui.dock.station.split.Leaf leaf,
WizardNodeMap map)
|
double |
validateDivider(WizardNodeMap.Column column,
double divider,
bibliothek.gui.dock.station.split.Node node,
WizardNodeMap map)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WizardColumnModel(WizardSplitDockStation station)
public WizardColumnModel(WizardSplitDockStation station, double factorW, double factorH)
Method Detail |
---|
public void setFactors(double factorW, double factorH)
public bibliothek.gui.dock.station.split.Leaf[] getLastLeafOfColumns()
public PersistentColumn[] getPersistentColumns()
public boolean isHeaderLevel(bibliothek.gui.dock.station.split.SplitNode node)
public boolean isHeaderLevel(bibliothek.gui.dock.station.split.SplitNode node, boolean recursive)
protected WizardNodeMap getMap()
public Dimension getPreferredSize()
WizardSplitDockStation
public void setPersistentColumns(bibliothek.gui.Dockable[][] columnsAndCells, int[][] cellSizes, int[] columnSizes)
PersistentColumn
s and PersistentCell
s and updates them according
to the values delivered to this method. If the current layout does not match the arguments, then
some cells will simply be ignored.
columnsAndCells
- the children of the station, sorted into columns and cells. The actual layout on the
station does not have to match this array, the other arguments of the method however must.cellSizes
- the size of each cell, this array must have the same dimensions as columnsAndCells
columnSizes
- the size of each column, this array must have the same dimensions as columnsAndCells
public void setDivider(bibliothek.gui.dock.station.split.Divideable divideable, double divider)
node
- the node whose dividier changeddivider
- the new dividierpublic void resetToPreferredSizes()
public void resetToPreferredSize(int index)
index
'th column such that it has its preferred size.
index
- the index of the column to updateprotected int applyPersistentSizes(WizardNodeMap map, boolean revalidate)
Node
s such that the actual size of the columns and cells results.
map
- information about the layout of the stationrevalidate
- if true
, a call to JComponent.revalidate()
is made
public void updateBounds(double x, double y)
SplitNode
s.
x
- the top left cornery
- the top left cornerprotected void updateBounds(bibliothek.gui.dock.station.split.SplitNode node, double x, double y, double width, double height, WizardNodeMap map)
node
and all its children. This method forwards the call
to either #updateBounds(SplitNode, double, double, double, double)
or
#updateBounds(double, double, double, double, Column)
depending on the existence of a
WizardNodeMap.Column
for node
in map
.
node
- the node whose boundaries are to be updatedx
- the minimum x coordinatey
- the minimum y coordinatewidth
- the maximum widthheight
- the maximum heightmap
- more information about the current layout.protected void updateBounds(double x, double y, double width, double height, WizardNodeMap.Column column, WizardNodeMap map)
column
and all its children.
x
- the minimum x coordinatey
- the minimum y coordinatewidth
- the maximum widthheight
- the maximum heightcolumn
- the column whose boundaries are to be updatedmap
- information about the current layoutprotected void updateBoundsRecursive(bibliothek.gui.dock.station.split.SplitNode node, double x, double y, double width, double height, WizardNodeMap map)
node
and all its children. This method recursively visites all
children of node
and forwards the call to updateBounds(SplitNode, double, double, double, double, WizardNodeMap)
if a Root
or a Node
is found.
node
- the node whose boundaries are to be updatex
- the minimum x coordinatey
- the minimum y coordinatewidth
- the maximum widthheight
- the maximum heightmap
- information about the current layoutpublic double validateDivider(double divider, bibliothek.gui.dock.station.split.Node node)
divider
for node
.
divider
- the location of the dividernode
- the node whose divider is changed
public double validateDivider(double divider, bibliothek.gui.dock.station.split.Leaf leaf)
divider
for leaf
.
divider
- the location of the dividernode
- the node whose divider is changed
public double validateColumnDivider(double divider)
divider
for the outermost column
divider
- the location of the dividernode
- the node whose divider is changed
public double validateDivider(WizardNodeMap.Column column, double divider, bibliothek.gui.dock.station.split.Node node, WizardNodeMap map)
public double validateDivider(WizardNodeMap.Column column, double divider, bibliothek.gui.dock.station.split.Leaf leaf, WizardNodeMap map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |