public class OrganicLayoutData extends LayoutData
OrganicLayout.| Constructor and Description |
|---|
OrganicLayoutData() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter. |
AbortHandler |
getAbortHandler()
Gets the AbortHandler used during the layout.
|
ItemCollection<INode> |
getAffectedNodes()
Gets the collection of nodes that is laid out by the layout.
|
ItemMapping<IEdge,Double> |
getEdgeDirectedness()
Gets the mapping from edges to their directedness.
|
ItemMapping<INode,GroupNodeMode> |
getGroupNodeModes()
Gets the mapping from group nodes to a mode constant describing how to handle the group node.
|
ItemMapping<INode,Double> |
getMinimumNodeDistances()
Gets the mapping from nodes to their minimum distance to other nodes.
|
ItemMapping<INode,NodeHalo> |
getNodeHalos()
Gets the mapping from nodes to their
NodeHalo. |
PartitionGridData |
getPartitionGridData()
Gets the partition grid layout data.
|
ItemMapping<IEdge,Double> |
getPreferredEdgeLengths()
Gets the mapping from edges to their preferred edge length.
|
void |
setAbortHandler(AbortHandler value)
Sets the AbortHandler used during the layout.
|
void |
setAffectedNodes(ItemCollection<INode> value)
Sets the collection of nodes that is laid out by the layout.
|
void |
setEdgeDirectedness(ItemMapping<IEdge,Double> value)
Sets the mapping from edges to their directedness.
|
void |
setGroupNodeModes(ItemMapping<INode,GroupNodeMode> value)
Sets the mapping from group nodes to a mode constant describing how to handle the group node.
|
void |
setMinimumNodeDistances(ItemMapping<INode,Double> value)
Sets the mapping from nodes to their minimum distance to other nodes.
|
void |
setNodeHalos(ItemMapping<INode,NodeHalo> value)
Sets the mapping from nodes to their
NodeHalo. |
void |
setPartitionGridData(PartitionGridData value)
Sets the partition grid layout data.
|
void |
setPreferredEdgeLengths(ItemMapping<IEdge,Double> value)
Sets the mapping from edges to their preferred edge length.
|
public void apply(LayoutGraphAdapter adapter, ILayoutAlgorithm layout, CopiedLayoutGraph layoutGraph)
LayoutDatalayoutGraphAdapter.apply in class LayoutDataadapter - 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 AbortHandler getAbortHandler()
AbortHandler.ABORT_HANDLER_DPKEY,
setAbortHandler(AbortHandler)public final ItemCollection<INode> getAffectedNodes()
OrganicLayout.AFFECTED_NODES_DPKEY,
setAffectedNodes(ItemCollection)public final ItemMapping<IEdge,Double> getEdgeDirectedness()
Generally, the organic layout algorithm doesn't consider the edge direction. Nevertheless, this property allows the user
to specify hints on the directedness of edges. More precisely, a value of 1 indicates that the edge should be
considered to be directed from source to target, a value of -1 that it is directed from target to source, and a
value of 0 means that it is undirected.
Currently, the specified values are only considered during the detection of special substructures, see
ChainSubstructureStyle,
CycleSubstructureStyle,
ParallelSubstructureStyle
and
StarSubstructureStyle.
OrganicLayout.EDGE_DIRECTEDNESS_DPKEY,
setEdgeDirectedness(ItemMapping)public final ItemMapping<INode,GroupNodeMode> getGroupNodeModes()
The algorithm expects for each group node to find one of the following constants or null:
OrganicLayout.GROUP_NODE_MODE_DPKEY,
setGroupNodeModes(ItemMapping)public final ItemMapping<INode,Double> getMinimumNodeDistances()
Note that the distances are only considered by the internally used ShuffleLayout when NodeOverlapsAllowed
is true and Scope is not Scope.ALL.
ShuffleLayout.MINIMUM_DISTANCE_DPKEY,
setMinimumNodeDistances(ItemMapping)public final ItemMapping<INode,NodeHalo> getNodeHalos()
NodeHalo.NodeHalo.NODE_HALO_DPKEY,
setNodeHalos(ItemMapping)public final PartitionGridData getPartitionGridData()
setPartitionGridData(PartitionGridData)public final ItemMapping<IEdge,Double> getPreferredEdgeLengths()
OrganicLayout.PREFERRED_EDGE_LENGTH_DPKEY,
setPreferredEdgeLengths(ItemMapping)public final void setAbortHandler(AbortHandler value)
value - The AbortHandler to set.AbortHandler.ABORT_HANDLER_DPKEY,
getAbortHandler()public final void setAffectedNodes(ItemCollection<INode> value)
value - The AffectedNodes to set.OrganicLayout.AFFECTED_NODES_DPKEY,
getAffectedNodes()public final void setEdgeDirectedness(ItemMapping<IEdge,Double> value)
Generally, the organic layout algorithm doesn't consider the edge direction. Nevertheless, this property allows the user
to specify hints on the directedness of edges. More precisely, a value of 1 indicates that the edge should be
considered to be directed from source to target, a value of -1 that it is directed from target to source, and a
value of 0 means that it is undirected.
Currently, the specified values are only considered during the detection of special substructures, see
ChainSubstructureStyle,
CycleSubstructureStyle,
ParallelSubstructureStyle
and
StarSubstructureStyle.
value - The EdgeDirectedness to set.OrganicLayout.EDGE_DIRECTEDNESS_DPKEY,
getEdgeDirectedness()public final void setGroupNodeModes(ItemMapping<INode,GroupNodeMode> value)
The algorithm expects for each group node to find one of the following constants or null:
value - The GroupNodeModes to set.OrganicLayout.GROUP_NODE_MODE_DPKEY,
getGroupNodeModes()public final void setMinimumNodeDistances(ItemMapping<INode,Double> value)
Note that the distances are only considered by the internally used ShuffleLayout when NodeOverlapsAllowed
is true and Scope is not Scope.ALL.
value - The MinimumNodeDistances to set.ShuffleLayout.MINIMUM_DISTANCE_DPKEY,
getMinimumNodeDistances()public final void setNodeHalos(ItemMapping<INode,NodeHalo> value)
NodeHalo.value - The NodeHalos to set.NodeHalo.NODE_HALO_DPKEY,
getNodeHalos()public final void setPartitionGridData(PartitionGridData value)
value - The PartitionGridData to set.getPartitionGridData()public final void setPreferredEdgeLengths(ItemMapping<IEdge,Double> value)
value - The PreferredEdgeLengths to set.OrganicLayout.PREFERRED_EDGE_LENGTH_DPKEY,
getPreferredEdgeLengths()