public abstract class SplitTreePathFactory extends java.lang.Object implements SplitTreeFactory<SplitDockPathProperty>
SplitDockPathProperty
pointing to some node.SplitDockPathProperty
when appropriate, the factory
will fill out all the fields of that property.Constructor and Description |
---|
SplitTreePathFactory() |
Modifier and Type | Method and Description |
---|---|
SplitDockPathProperty |
horizontal(SplitDockPathProperty left,
SplitDockPathProperty right,
double divider,
long id,
Path[] placeholders,
PlaceholderMap placeholderMap,
boolean visible)
Informs about a node that is divided vertically.
|
SplitDockPathProperty |
leaf(Dockable check,
long id,
Path[] placeholders,
PlaceholderMap placeholderMap)
Informs about a leaf of the tree.
|
SplitDockPathProperty |
placeholder(long id,
Path[] placeholders,
PlaceholderMap placeholderMap)
Informs about a set of placeholder in the tree.
|
SplitDockPathProperty |
root(SplitDockPathProperty root,
long id)
Informs about the node that is the root.
|
SplitDockPathProperty |
vertical(SplitDockPathProperty top,
SplitDockPathProperty bottom,
double divider,
long id,
Path[] placeholders,
PlaceholderMap placeholderMap,
boolean visible)
Informs about a node that is divided vertically.
|
public SplitDockPathProperty leaf(Dockable check, long id, Path[] placeholders, PlaceholderMap placeholderMap)
SplitTreeFactory
leaf
in interface SplitTreeFactory<SplitDockPathProperty>
check
- the element in the leafid
- the unique identifier of this node or -1placeholders
- the placeholders associated with this node, can be emptyplaceholderMap
- placeholder information of a child DockStation
null
public SplitDockPathProperty placeholder(long id, Path[] placeholders, PlaceholderMap placeholderMap)
SplitTreeFactory
placeholder
in interface SplitTreeFactory<SplitDockPathProperty>
id
- the unique id of this placeholderplaceholders
- the placeholdersplaceholderMap
- placeholder information of a child DockStation
null
public SplitDockPathProperty root(SplitDockPathProperty root, long id)
SplitTreeFactory
root
in interface SplitTreeFactory<SplitDockPathProperty>
root
- the root of the tree, might be null
id
- the unique identifier of this node or -1null
public SplitDockPathProperty horizontal(SplitDockPathProperty left, SplitDockPathProperty right, double divider, long id, Path[] placeholders, PlaceholderMap placeholderMap, boolean visible)
SplitTreeFactory
horizontal
in interface SplitTreeFactory<SplitDockPathProperty>
left
- the left child of the node, might be null
right
- the right child of the node, might be null
divider
- the size of the left node, a value between 0 and 1.id
- the unique identifier of this node or -1placeholders
- the placeholders associated with this node, can be emptyplaceholderMap
- placeholder information of a child DockStation
visible
- whether this node is visible to the user or not. A node is only visible to the user
if at least one of its children is visiblenull
public SplitDockPathProperty vertical(SplitDockPathProperty top, SplitDockPathProperty bottom, double divider, long id, Path[] placeholders, PlaceholderMap placeholderMap, boolean visible)
SplitTreeFactory
vertical
in interface SplitTreeFactory<SplitDockPathProperty>
top
- the top child of the node, might be null
bottom
- the bottom child of the node, might be null
divider
- the size of the top node, a value between 0 and 1.id
- the unique identifier of this node or -1placeholders
- the placeholders associated with this node, can be emptyplaceholderMap
- placeholder information of a child DockStation
visible
- whether this node is visible to the user or not. A node is only visible to the user
if at least one of its children is visiblenull