public class RadialLayoutData extends LayoutData
RadialLayout
.Constructor and Description |
---|
RadialLayoutData() |
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.
|
DpKeyItemCollection<INode> |
getCenterNodes()
Gets the collection of nodes that shall be placed in the center with
center node policy
set to CenterNodesPolicy.CUSTOM . |
ItemMapping<IEdge,EdgeBundleDescriptor> |
getEdgeBundleDescriptors()
Gets the mapping of edges to their
EdgeBundleDescriptor . |
ItemMapping<INode,NodeHalo> |
getNodeHalos()
Gets the mapping from nodes to their
NodeHalo . |
IMapper<INode,RadialLayout.NodeInfo> |
getNodeInfos()
Gets the mapping from nodes to a
RadialLayout.NodeInfo describing on which circle and in which sector the node
is placed. |
ItemMapping<IEdge,Object> |
getSourceGroups()
Gets a mapping from edges to an object representing their source edge group.
|
ItemMapping<IEdge,Object> |
getTargetGroups()
Gets a mapping from edges to an object representing their target edge group.
|
void |
setAbortHandler(AbortHandler value)
Sets the AbortHandler used during the layout.
|
void |
setCenterNodes(DpKeyItemCollection<INode> value)
Sets the collection of nodes that shall be placed in the center with
center node policy
set to CenterNodesPolicy.CUSTOM . |
void |
setEdgeBundleDescriptors(ItemMapping<IEdge,EdgeBundleDescriptor> value)
Sets the mapping of edges to their
EdgeBundleDescriptor . |
void |
setNodeHalos(ItemMapping<INode,NodeHalo> value)
Sets the mapping from nodes to their
NodeHalo . |
void |
setNodeInfos(IMapper<INode,RadialLayout.NodeInfo> value)
Sets the mapping from nodes to a
RadialLayout.NodeInfo describing on which circle and in which sector the node
is placed. |
void |
setSourceGroups(ItemMapping<IEdge,Object> value)
Sets a mapping from edges to an object representing their source edge group.
|
void |
setTargetGroups(ItemMapping<IEdge,Object> value)
Sets a mapping from edges to an object representing their target edge group.
|
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 AbortHandler getAbortHandler()
AbortHandler.ABORT_HANDLER_DPKEY
,
setAbortHandler(AbortHandler)
public final DpKeyItemCollection<INode> getCenterNodes()
center node policy
set to CenterNodesPolicy.CUSTOM
.RadialLayout.getCenterNodesDpKey()
,
setCenterNodes(DpKeyItemCollection)
public final ItemMapping<IEdge,EdgeBundleDescriptor> getEdgeBundleDescriptors()
EdgeBundleDescriptor
.
Bundling together multiple edges means that their common parts are to some degree merged into a bundled part. At the source and target point, the edges are again clearly split.
If an edge is mapped to null
, the default descriptor
is used.
EdgeBundleDescriptor
,
RadialLayout.getEdgeBundling()
,
setEdgeBundleDescriptors(ItemMapping)
public final ItemMapping<INode,NodeHalo> getNodeHalos()
NodeHalo
.NodeHalo.NODE_HALO_DPKEY
,
setNodeHalos(ItemMapping)
public final IMapper<INode,RadialLayout.NodeInfo> getNodeInfos()
RadialLayout.NodeInfo
describing on which circle and in which sector the node
is placed.
If the mapper contains a RadialLayout.NodeInfo
for a node, the layout will update its property during the
layout.
RadialLayout.NODE_INFO_DPKEY
,
setNodeInfos(IMapper)
public final ItemMapping<IEdge,Object> getSourceGroups()
PortConstraintKeys.SOURCE_GROUP_ID_DPKEY
,
setSourceGroups(ItemMapping)
public final ItemMapping<IEdge,Object> getTargetGroups()
PortConstraintKeys.TARGET_GROUP_ID_DPKEY
,
setTargetGroups(ItemMapping)
public final void setAbortHandler(AbortHandler value)
value
- The AbortHandler to set.AbortHandler.ABORT_HANDLER_DPKEY
,
getAbortHandler()
public final void setCenterNodes(DpKeyItemCollection<INode> value)
center node policy
set to CenterNodesPolicy.CUSTOM
.value
- The CenterNodes to set.RadialLayout.getCenterNodesDpKey()
,
getCenterNodes()
public final void setEdgeBundleDescriptors(ItemMapping<IEdge,EdgeBundleDescriptor> value)
EdgeBundleDescriptor
.
Bundling together multiple edges means that their common parts are to some degree merged into a bundled part. At the source and target point, the edges are again clearly split.
If an edge is mapped to null
, the default descriptor
is used.
value
- The EdgeBundleDescriptors to set.EdgeBundleDescriptor
,
RadialLayout.getEdgeBundling()
,
getEdgeBundleDescriptors()
public final void setNodeHalos(ItemMapping<INode,NodeHalo> value)
NodeHalo
.value
- The NodeHalos to set.NodeHalo.NODE_HALO_DPKEY
,
getNodeHalos()
public final void setNodeInfos(IMapper<INode,RadialLayout.NodeInfo> value)
RadialLayout.NodeInfo
describing on which circle and in which sector the node
is placed.
If the mapper contains a RadialLayout.NodeInfo
for a node, the layout will update its property during the
layout.
value
- The NodeInfos to set.RadialLayout.NODE_INFO_DPKEY
,
getNodeInfos()
public final void setSourceGroups(ItemMapping<IEdge,Object> value)
value
- The SourceGroups to set.PortConstraintKeys.SOURCE_GROUP_ID_DPKEY
,
getSourceGroups()
public final void setTargetGroups(ItemMapping<IEdge,Object> value)
value
- The TargetGroups to set.PortConstraintKeys.TARGET_GROUP_ID_DPKEY
,
getTargetGroups()