|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.wizard.WizardNodeMap
public abstract class WizardNodeMap
The node map tells the location of nodes and columns. It does not offer any logic to change these properties.
Nested Class Summary | |
---|---|
class |
WizardNodeMap.Cell
A cell is a single SplitNode , usually a Leaf , and a part of a WizardNodeMap.Column . |
class |
WizardNodeMap.Column
A column is a set of WizardNodeMap.Cell s. |
Constructor Summary | |
---|---|
WizardNodeMap(WizardSplitDockStation station,
PersistentColumn[] persistentColumns)
Creates a new map using the current content of station |
Method Summary | |
---|---|
WizardNodeMap.Column |
getColumn(bibliothek.gui.dock.station.split.SplitNode node)
Searches the column which contains node . |
WizardNodeMap.Column |
getColumn(bibliothek.gui.dock.station.split.SplitNode node,
boolean upwards)
Gets the WizardNodeMap.Column which contains node . |
int |
getColumnCount()
Gets the number of columns. |
Map<bibliothek.gui.dock.station.split.SplitNode,WizardNodeMap.Column> |
getColumns()
Gets all the columns of this map. |
PersistentCell |
getHeadCell(bibliothek.gui.dock.station.split.SplitNode node)
Follows the tree downwards using the right path until a Leaf
is found, the cell matching that leaf is returned. |
WizardNodeMap.Column |
getHeadColumn(bibliothek.gui.dock.station.split.SplitNode node)
Searches the WizardNodeMap.Column which is nearest to the inside of the parent Container ,
e.g. |
bibliothek.gui.dock.station.split.Leaf[] |
getLastLeafOfColumns()
Goes through all WizardNodeMap.Column s all collects the last cell of these columns. |
WizardNodeMap.Column |
getOutermostColumn()
Searches the WizardNodeMap.Column which is closest to the inside of the parent Container . |
PersistentColumn[] |
getPersistentColumns()
|
WizardNodeMap.Column[] |
getSortedColumns()
Gets all the columns sorted by their index . |
protected abstract void |
handlePersistentColumnsAdapted(PersistentColumn[] persistentColumns)
Called if the current set of PersistentColumn s has been changed. |
boolean |
isColumnRoot(bibliothek.gui.dock.station.split.SplitNode node)
Tells whether node is the root node of a WizardNodeMap.Column . |
boolean |
isHeaderLevel(bibliothek.gui.dock.station.split.SplitNode node)
Tells whether node is part of the header. |
boolean |
isHeaderLevel(bibliothek.gui.dock.station.split.SplitNode node,
boolean recursive)
Tells whether node is part of the header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WizardNodeMap(WizardSplitDockStation station, PersistentColumn[] persistentColumns)
station
station
- the station whose content is to be analyzedpersistentColumns
- the current columns and their current sizeMethod Detail |
---|
public Map<bibliothek.gui.dock.station.split.SplitNode,WizardNodeMap.Column> getColumns()
public int getColumnCount()
public WizardNodeMap.Column[] getSortedColumns()
index
.
public boolean isColumnRoot(bibliothek.gui.dock.station.split.SplitNode node)
node
is the root node of a WizardNodeMap.Column
.
node
- the node to check
node
is the root of a WizardNodeMap.Column
public boolean isHeaderLevel(bibliothek.gui.dock.station.split.SplitNode node)
node
is part of the header. The header includes all
nodes whose orientation is orthogonal to the orientation of the layout.
node
- the node to check
node
belongs to the headerpublic boolean isHeaderLevel(bibliothek.gui.dock.station.split.SplitNode node, boolean recursive)
node
is part of the header. If recursive
is
true
, then this node is considered to be part of the header if the parent
node is part of the header (but the recursive
attribute does not apply to the parent).
node
- the node to checkrecursive
- whether to check the parent node as well
node
belongs to the headerpublic WizardNodeMap.Column getOutermostColumn()
WizardNodeMap.Column
which is closest to the inside of the parent Container
.
public WizardNodeMap.Column getHeadColumn(bibliothek.gui.dock.station.split.SplitNode node)
WizardNodeMap.Column
which is nearest to the inside of the parent Container
,
e.g. is WizardSplitDockStation.Side
is WizardSplitDockStation.Side.RIGHT
, then this method would return the left most
WizardNodeMap.Column
.
node
- the node in whose subtree the WizardNodeMap.Column
should be searched
null
if not foundpublic PersistentCell getHeadCell(bibliothek.gui.dock.station.split.SplitNode node)
right
path until a Leaf
is found, the cell matching that leaf is returned.
node
- the starting point of the search
null
public WizardNodeMap.Column getColumn(bibliothek.gui.dock.station.split.SplitNode node)
node
. If node
is part of
the header, then the result represents the column at the right side of the divider.
node
- the node whose column index is searched
null
public WizardNodeMap.Column getColumn(bibliothek.gui.dock.station.split.SplitNode node, boolean upwards)
WizardNodeMap.Column
which contains node
.
node
- the node whose column is searchedupwards
- if false
, then node
has to be a isColumnRoot(SplitNode)
, otherwise
it can be a child of a column root as well.
null
public bibliothek.gui.dock.station.split.Leaf[] getLastLeafOfColumns()
WizardNodeMap.Column
s all collects the last cell of these columns.
WizardNodeMap.Column
public PersistentColumn[] getPersistentColumns()
protected abstract void handlePersistentColumnsAdapted(PersistentColumn[] persistentColumns)
PersistentColumn
s has been changed.
persistentColumns
- the new set of persistent columns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |