|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.split.AbstractSplitDockGrid<Dockable>
bibliothek.gui.dock.station.split.SplitDockGrid
public class SplitDockGrid
An implementation of AbstractSplitDockGrid that works with Dockables.
toTree(),
SplitDockStation.dropTree(SplitDockTree)| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class bibliothek.gui.dock.station.split.AbstractSplitDockGrid |
|---|
AbstractSplitDockGrid.Line, AbstractSplitDockGrid.Node<D> |
| Constructor Summary | |
|---|---|
SplitDockGrid()
Creates a new, empty grid. |
|
SplitDockGrid(String layout,
Map<Character,Dockable[]> dockables)
Creates a grid by reading a string which represents a grid. The argument layout is a string divided by newline
"\n". |
|
| Method Summary | |
|---|---|
protected Dockable[] |
array(int size)
Creates a D-array of length size. |
DockableSplitDockTree |
toTree()
Converts the current grid into a tree. |
protected Dockable[] |
unpack(Dockable dockable)
Unpacks dockable. |
| Methods inherited from class bibliothek.gui.dock.station.split.AbstractSplitDockGrid |
|---|
addDockable, addHorizontalDivider, addPlaceholders, addVerticalDivider, bestFittingLine, combine, diff, fillTree, getDockables, getGridNodes, getLines, getNode, getNodes, isUnpack, penalty, setPlaceholderMap, setSelected, setUnpack, tree, unpack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SplitDockGrid()
public SplitDockGrid(String layout,
Map<Character,Dockable[]> dockables)
layout is a string divided by newline
"\n". Every line represents a y-coordinate, the position
of a character in a line represents a x-coordinate. The minimal and
the maximal x- and y-coordinates for a character is searched, and
used to call addDockable,
where the Dockable-array is taken from the Map
dockables.
layout - the layout, a string divided by newlinesdockables - the Dockables to add, only entries whose character is
in the String layout.| Method Detail |
|---|
protected Dockable[] unpack(Dockable dockable)
AbstractSplitDockGriddockable. Unpacking means converting dockable in something like a DockStation
and returning all the children Dockables.
unpack in class AbstractSplitDockGrid<Dockable>dockable - the dockable to unpack
dockable or all its childrenprotected Dockable[] array(int size)
AbstractSplitDockGridsize.
array in class AbstractSplitDockGrid<Dockable>size - the size of the new array
public DockableSplitDockTree toTree()
SplitDockStation.dropTree(SplitDockTree)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||