Remarks
Property layoutAlgorithm defines the algorithm that is responsible for arranging the subcomponent. The placementPolicy specifies the integration into the main hierarchical layout.
Nodes mapped to the same HierarchicalLayoutSubcomponentDescriptor instance form a component that is arranged as an independent sub-graph, induced by the component nodes. The mapping is retrieved from HierarchicalLayoutData<TNode, TEdge, TNodeEdge, TNodeLabel, TEdgeLabel>.subcomponents. Components may not be nested, that is, a subcomponent is not allowed to contain nodes that belong to yet another subcomponent. Nesting of subcomponents results in an exception.
Default Values of Properties
| Name | Default | Description |
|---|---|---|
| layoutAlgorithm | null | |
| placementPolicy | HierarchicalLayoutSubcomponentPlacementPolicy.AUTOMATIC | It is automatically determined how the subcomponent is placed. |
See Also
Developer's Guide
API
- subcomponents
Members
Constructors
HierarchicalLayoutSubcomponentDescriptor
(layoutAlgorithm?: ILayoutAlgorithm, placementPolicy?: HierarchicalLayoutSubcomponentPlacementPolicy)Creates a new HierarchicalLayoutSubcomponentDescriptor instance with the specified settings.
HierarchicalLayoutSubcomponentDescriptor
(layoutAlgorithm?: ILayoutAlgorithm, placementPolicy?: HierarchicalLayoutSubcomponentPlacementPolicy)Parameters
- layoutAlgorithm?: ILayoutAlgorithm
- The layout algorithm handling the layout of the graph induced by the subcomponent.
- placementPolicy?: HierarchicalLayoutSubcomponentPlacementPolicyconversion
- The policy for placing the component into the layout context of the remaining graph.
Properties
Gets or sets the ILayoutAlgorithm for the subgraph that is induced by the nodes associated with this descriptor.
Property Value
Default Value
Sample Graphs
See Also
Developer's Guide
Gets or sets the policy defining how the subcomponent is placed within the layout context of the remaining graph.
Property Value
Default Value
See Also
Developer's Guide
Methods
Determines if there is a unique node outside the subcomponent whose removal would disconnect the component from the remaining graph and returns the node if it exists.
Parameters
- graph: LayoutGraph
- The graph containing the subcomponent.
Return Value
- LayoutNode
- The only node outside the subcomponent with edges connecting to nodes within the subcomponent if such a node exists,
nullotherwise.