Package | Description |
---|---|
com.yworks.yfiles.layout.tree |
Provides tree layout style algorithms.
|
Modifier and Type | Method and Description |
---|---|
TreeLayout.SubtreeShape |
TreeLayout.SubtreeShape.createCopy(AbstractRotatableNodePlacer.Matrix matrix)
Creates a clone of this
TreeLayout.SubtreeShape instance, modifying it using the provided modification matrix. |
protected TreeLayout.SubtreeShape |
TreeLayout.createNodeShape(Node node)
Creates a
TreeLayout.SubtreeShape for the given node that consists only of the bounds of this particular node. |
protected TreeLayout.SubtreeShape |
AbstractNodePlacer.getNodeShape(Node node)
Returns the
TreeLayout.SubtreeShape for the given node. |
protected TreeLayout.SubtreeShape |
TreeLayout.getSubtreeShape(Node localRoot)
Provides access to the
TreeLayout.SubtreeShape for the given node. |
protected TreeLayout.SubtreeShape |
AbstractNodePlacer.getSubtreeShape(Node node)
Returns the
TreeLayout.SubtreeShape for the subtree rooted at the given node. |
protected TreeLayout.SubtreeShape |
TreeLayout.layoutRoot(Node localRoot)
Calculates the layout for the given root node and its subtrees.
|
TreeLayout.SubtreeShape |
LeafNodePlacer.placeSubtree(IDataProvider nodeShapeProvider,
IDataProvider subtreeShapeProvider,
LayoutGraph graph,
Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Creates a
TreeLayout.SubtreeShape for the local root node (a leaf node in this case) and adds target points to
the incoming edge. |
TreeLayout.SubtreeShape |
INodePlacer.placeSubtree(IDataProvider nodeShapeProvider,
IDataProvider subtreeShapeProvider,
LayoutGraph graph,
Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Arranges the
SubtreeShapes of the local root and its children and routes the edges that
connect them. |
TreeLayout.SubtreeShape |
GroupedNodePlacer.placeSubtree(IDataProvider nodeShapeProvider,
IDataProvider subtreeShapeProvider,
LayoutGraph graph,
Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Places the groups of
TreeLayout.SubtreeShape s according to their group IDs. |
TreeLayout.SubtreeShape |
DendrogramNodePlacer.placeSubtree(IDataProvider nodeShapeProvider,
IDataProvider subtreeShapeProvider,
LayoutGraph graph,
Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Arranges the
SubtreeShapes of the local root and its children as a dendrogram. |
TreeLayout.SubtreeShape |
DelegatingNodePlacer.placeSubtree(IDataProvider nodeShapeProvider,
IDataProvider subtreeShapeProvider,
LayoutGraph graph,
Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Places the
TreeLayout.SubtreeShape s of the child nodes using the two delegate node placers retrieved with PrimaryPlacer
and SecondaryPlacer . |
TreeLayout.SubtreeShape |
AssistantNodePlacer.placeSubtree(IDataProvider nodeShapeProvider,
IDataProvider subtreeShapeProvider,
LayoutGraph graph,
Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Delegates the arrangement of
TreeLayout.SubtreeShape s to an instance of LeftRightNodePlacer . |
TreeLayout.SubtreeShape |
AbstractRotatableNodePlacer.placeSubtree(IDataProvider nodeShapeProvider,
IDataProvider subtreeShapeProvider,
LayoutGraph graph,
Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Initializes the local data structures and then delegates the work to the abstract variant of this method
(
AbstractRotatableNodePlacer.placeSubtree(Node, ParentConnectorDirection) ). |
TreeLayout.SubtreeShape |
AbstractNodePlacer.placeSubtree(IDataProvider nodeShapeProvider,
IDataProvider subtreeShapeProvider,
LayoutGraph graph,
Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Initializes the local data structures and then delegates the work to the abstract variant of this method
(
AbstractNodePlacer.placeSubtree(Node, ParentConnectorDirection) ). |
protected TreeLayout.SubtreeShape |
DefaultNodePlacer.placeSubtree(Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Arranges the root node and its children.
|
protected TreeLayout.SubtreeShape |
AspectRatioNodePlacer.placeSubtree(Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Arranges the
SubtreeShapes of children of the local root node in rows or columns that
fit the specified aspect ratio . |
protected abstract TreeLayout.SubtreeShape |
AbstractNodePlacer.placeSubtree(Node localRoot,
ParentConnectorDirection parentConnectorDirection)
Arranges the local root relative to the
TreeLayout.SubtreeShape of its children. |
Modifier and Type | Method and Description |
---|---|
void |
TreeLayout.SubtreeShape.assignValuesTo(TreeLayout.SubtreeShape toShape,
AbstractRotatableNodePlacer.Matrix modificationMatrix)
Copies the state of this
TreeLayout.SubtreeShape instance to the given shape applying a modification matrix. |
protected void |
DefaultNodePlacer.calculateParentConnector(LayoutGraph graph,
Node localRoot,
INodeLayout rootLayout,
TreeLayout.SubtreeShape subtreeShape,
Edge parentEdge,
IEdgeLayout parentEdgeLayout,
byte direction)
Calculates the bends for the connector to the parent node.
|
protected void |
DefaultNodePlacer.calculateSlopedSourceEdgeLayout(INodeLayout rootLayout,
TreeLayout.SubtreeShape childShape,
Edge edge,
double childForkCoordinate,
double rootForkCoordinate)
Calculates the routing of the source side of the edge to the given child node.
|
protected void |
DefaultNodePlacer.calculateSourceEdgeLayout(INodeLayout rootLayout,
TreeLayout.SubtreeShape childShape,
Edge edge)
Calculates the routing of the source side of the edge to the given child node.
|
protected void |
DefaultNodePlacer.calculateTargetEdgeLayout(INodeLayout rootLayout,
TreeLayout.SubtreeShape childShape,
Edge edge)
Calculates the routing of the target side of the edge to the given child node.
|
void |
TreeLayout.SubtreeShape.mergeWith(TreeLayout.SubtreeShape other)
Merges the given
TreeLayout.SubtreeShape instance with this TreeLayout.SubtreeShape instance. |