public class FixGroupLayoutData extends LayoutData
FixGroupLayoutStage
.Constructor and Description |
---|
FixGroupLayoutData() |
Modifier and Type | Method and Description |
---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter . |
ItemCollection<INode> |
getFixedGroupNodes()
Gets the collection of group nodes whose contents should keep their relative positions.
|
ItemMapping<IEdge,PortConstraint> |
getSourcePortConstraints()
Gets a mapping from edges to their source
PortConstraint . |
ItemMapping<IEdge,PortConstraint> |
getTargetPortConstraints()
Gets a mapping from edges to their target
PortConstraint . |
void |
setFixedGroupNodes(ItemCollection<INode> value)
Sets the collection of group nodes whose contents should keep their relative positions.
|
void |
setSourcePortConstraints(ItemMapping<IEdge,PortConstraint> value)
Sets a mapping from edges to their source
PortConstraint . |
void |
setTargetPortConstraints(ItemMapping<IEdge,PortConstraint> value)
Sets a mapping from edges to their target
PortConstraint . |
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 ItemCollection<INode> getFixedGroupNodes()
FixGroupLayoutStage.FIXED_GROUP_NODES_DPKEY
,
setFixedGroupNodes(ItemCollection)
public final ItemMapping<IEdge,PortConstraint> getSourcePortConstraints()
PortConstraint
.PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY
,
setSourcePortConstraints(ItemMapping)
public final ItemMapping<IEdge,PortConstraint> getTargetPortConstraints()
PortConstraint
.PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY
,
setTargetPortConstraints(ItemMapping)
public final void setFixedGroupNodes(ItemCollection<INode> value)
value
- The FixedGroupNodes to set.FixGroupLayoutStage.FIXED_GROUP_NODES_DPKEY
,
getFixedGroupNodes()
public final void setSourcePortConstraints(ItemMapping<IEdge,PortConstraint> value)
PortConstraint
.value
- The SourcePortConstraints to set.PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY
,
getSourcePortConstraints()
public final void setTargetPortConstraints(ItemMapping<IEdge,PortConstraint> value)
PortConstraint
.value
- The TargetPortConstraints to set.PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY
,
getTargetPortConstraints()