public class PerspectiveSplitDockGrid extends AbstractSplitDockGrid<PerspectiveDockable>
AbstractSplitDockGrid that works with PerspectiveDockables.SplitDockPerspectiveAbstractSplitDockGrid.Line, AbstractSplitDockGrid.Node<D>| Constructor and Description |
|---|
PerspectiveSplitDockGrid()
Creates a new, empty grid.
|
PerspectiveSplitDockGrid(String layout,
Map<Character,PerspectiveDockable[]> dockables)
Creates a grid by reading a string which represents a grid.
The argument layout is a string divided by newline
"\n". |
| Modifier and Type | Method and Description |
|---|---|
protected PerspectiveDockable[] |
array(int size)
Creates a D-array of length
size. |
PerspectiveSplitDockTree |
toTree()
Converts the current grid into a tree.
|
protected PerspectiveDockable[] |
unpack(PerspectiveDockable dockable)
Unpacks
dockable. |
addDockable, addHorizontalDivider, addPlaceholders, addVerticalDivider, bestFittingLine, combine, diff, fillTree, getDockables, getGridNodes, getLines, getNode, getNodes, isUnpack, penalty, setPlaceholderMap, setSelected, setUnpack, tree, unpackpublic PerspectiveSplitDockGrid()
public PerspectiveSplitDockGrid(String layout, Map<Character,PerspectiveDockable[]> 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.protected PerspectiveDockable[] array(int size)
AbstractSplitDockGridsize.array in class AbstractSplitDockGrid<PerspectiveDockable>size - the size of the new arraypublic PerspectiveSplitDockTree toTree()
SplitDockStation.dropTree(SplitDockTree)protected PerspectiveDockable[] unpack(PerspectiveDockable dockable)
AbstractSplitDockGriddockable. Unpacking means converting dockable in something like a DockStation
and returning all the children Dockables.unpack in class AbstractSplitDockGrid<PerspectiveDockable>dockable - the dockable to unpackdockable or all its childrenCopyright © 2017 Docking Frames. All rights reserved.