public class AspectRatioTreeLayoutData extends LayoutData
AspectRatioTreeLayout
.Constructor and Description |
---|
AspectRatioTreeLayoutData() |
Modifier and Type | Method and Description |
---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter . |
ItemMapping<INode,RootPlacement> |
getRootPlacements()
Gets the mapping from nodes with sub trees to their placements.
|
ItemMapping<INode,Double> |
getSubtreeAspectRatios()
Gets the mapping from nodes to the aspect ratio of their sub tree.
|
ItemMapping<INode,SubtreeArrangement> |
getSubtreeRoutingPolicies()
Gets the mapping from nodes to the routing policies of their sub trees.
|
void |
setRootPlacements(ItemMapping<INode,RootPlacement> value)
Sets the mapping from nodes with sub trees to their placements.
|
void |
setSubtreeAspectRatios(ItemMapping<INode,Double> value)
Sets the mapping from nodes to the aspect ratio of their sub tree.
|
void |
setSubtreeRoutingPolicies(ItemMapping<INode,SubtreeArrangement> value)
Sets the mapping from nodes to the routing policies of their sub trees.
|
public void apply(LayoutGraphAdapter adapter, ILayoutAlgorithm layout, CopiedLayoutGraph layoutGraph)
LayoutData
layoutGraphAdapter
.apply
in class LayoutData
adapter
- The adapter to add the layout data to.layout
- The layout that shall use this layout data.layoutGraph
- The layout graph used for the layout calculation.public final ItemMapping<INode,RootPlacement> getRootPlacements()
AspectRatioTreeLayout.ROOT_PLACEMENT_DPKEY
,
AspectRatioTreeLayout.getRootPlacement(java.lang.Object)
,
setRootPlacements(ItemMapping)
public final ItemMapping<INode,Double> getSubtreeAspectRatios()
AspectRatioTreeLayout.SUBTREE_ASPECT_RATIO_DPKEY
,
setSubtreeAspectRatios(ItemMapping)
public final ItemMapping<INode,SubtreeArrangement> getSubtreeRoutingPolicies()
AspectRatioTreeLayout.SUBTREE_ROUTING_POLICY_DPKEY
,
AspectRatioTreeLayout.getSubtreeArrangement(java.lang.Object)
,
setSubtreeRoutingPolicies(ItemMapping)
public final void setRootPlacements(ItemMapping<INode,RootPlacement> value)
value
- The RootPlacements to set.AspectRatioTreeLayout.ROOT_PLACEMENT_DPKEY
,
AspectRatioTreeLayout.getRootPlacement(java.lang.Object)
,
getRootPlacements()
public final void setSubtreeAspectRatios(ItemMapping<INode,Double> value)
value
- The SubtreeAspectRatios to set.AspectRatioTreeLayout.SUBTREE_ASPECT_RATIO_DPKEY
,
getSubtreeAspectRatios()
public final void setSubtreeRoutingPolicies(ItemMapping<INode,SubtreeArrangement> value)
value
- The SubtreeRoutingPolicies to set.AspectRatioTreeLayout.SUBTREE_ROUTING_POLICY_DPKEY
,
AspectRatioTreeLayout.getSubtreeArrangement(java.lang.Object)
,
getSubtreeRoutingPolicies()