public class SeriesParallelLayoutData extends LayoutData
SeriesParallelLayout
.Constructor and Description |
---|
SeriesParallelLayoutData() |
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.
|
ItemMapping<IEdge,EdgeLayoutDescriptor> |
getEdgeLayoutDescriptors()
Gets the mapping from edges to their
EdgeLayoutDescriptor . |
ItemMapping<INode,Comparator<IEdge>> |
getOutEdgeComparators()
Gets the mapping from nodes to comparison functions used to sort the nodes' outgoing edges.
|
ItemMapping<INode,IPortAssignment> |
getPortAssignments()
Gets the mapping from nodes to their
IPortAssignment . |
ItemMapping<IEdge,Object> |
getSourceGroupIds()
Gets a mapping from edges to an object representing their source edge group.
|
ItemMapping<IEdge,Object> |
getTargetGroupIds()
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 |
setEdgeLayoutDescriptors(ItemMapping<IEdge,EdgeLayoutDescriptor> value)
Sets the mapping from edges to their
EdgeLayoutDescriptor . |
void |
setOutEdgeComparators(ItemMapping<INode,Comparator<IEdge>> value)
Sets the mapping from nodes to comparison functions used to sort the nodes' outgoing edges.
|
void |
setPortAssignments(ItemMapping<INode,IPortAssignment> value)
Sets the mapping from nodes to their
IPortAssignment . |
void |
setSourceGroupIds(ItemMapping<IEdge,Object> value)
Sets a mapping from edges to an object representing their source edge group.
|
void |
setTargetGroupIds(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 ItemMapping<IEdge,EdgeLayoutDescriptor> getEdgeLayoutDescriptors()
EdgeLayoutDescriptor
.EdgeLayoutDescriptor
,
SeriesParallelLayout.EDGE_LAYOUT_DESCRIPTOR_DPKEY
,
setEdgeLayoutDescriptors(ItemMapping)
public final ItemMapping<INode,Comparator<IEdge>> getOutEdgeComparators()
SeriesParallelLayout.OUT_EDGE_COMPARATOR_DPKEY
,
setOutEdgeComparators(ItemMapping)
public final ItemMapping<INode,IPortAssignment> getPortAssignments()
IPortAssignment
.SeriesParallelLayout.PORT_ASSIGNMENT_DPKEY
,
setPortAssignments(ItemMapping)
public final ItemMapping<IEdge,Object> getSourceGroupIds()
PortConstraintKeys.SOURCE_GROUP_ID_DPKEY
,
setSourceGroupIds(ItemMapping)
public final ItemMapping<IEdge,Object> getTargetGroupIds()
PortConstraintKeys.TARGET_GROUP_ID_DPKEY
,
setTargetGroupIds(ItemMapping)
public final void setAbortHandler(AbortHandler value)
value
- The AbortHandler to set.AbortHandler.ABORT_HANDLER_DPKEY
,
getAbortHandler()
public final void setEdgeLayoutDescriptors(ItemMapping<IEdge,EdgeLayoutDescriptor> value)
EdgeLayoutDescriptor
.value
- The EdgeLayoutDescriptors to set.EdgeLayoutDescriptor
,
SeriesParallelLayout.EDGE_LAYOUT_DESCRIPTOR_DPKEY
,
getEdgeLayoutDescriptors()
public final void setOutEdgeComparators(ItemMapping<INode,Comparator<IEdge>> value)
value
- The OutEdgeComparators to set.SeriesParallelLayout.OUT_EDGE_COMPARATOR_DPKEY
,
getOutEdgeComparators()
public final void setPortAssignments(ItemMapping<INode,IPortAssignment> value)
IPortAssignment
.value
- The PortAssignments to set.SeriesParallelLayout.PORT_ASSIGNMENT_DPKEY
,
getPortAssignments()
public final void setSourceGroupIds(ItemMapping<IEdge,Object> value)
value
- The SourceGroupIds to set.PortConstraintKeys.SOURCE_GROUP_ID_DPKEY
,
getSourceGroupIds()
public final void setTargetGroupIds(ItemMapping<IEdge,Object> value)
value
- The TargetGroupIds to set.PortConstraintKeys.TARGET_GROUP_ID_DPKEY
,
getTargetGroupIds()