Package | com.yworks.yfiles.layout.hierarchic.incremental |
Interface | public interface SequenceConstraintFactory |
A SequenceConstraintFactory
has to be disposed (dispose()) after use. Disposing the factory will also remove all constraints previously specified for the factory's associated graph.
See also
Method | Defined By | ||
---|---|---|---|
addPlaceNodeAfterConstraint(referenceId:Object, afterId:Object):void
Add a constraint that forces the node with id after to lie after the node with id reference. | SequenceConstraintFactory | ||
addPlaceNodeAtHeadConstraint(nodeId:Object):void
Add a constraint that places a node at the start of the sequence. | SequenceConstraintFactory | ||
addPlaceNodeAtTailConstraint(nodeId:Object):void
Add a constraint that places a node at the end of the sequence. | SequenceConstraintFactory | ||
addPlaceNodeBeforeConstraint(referenceId:Object, beforeId:Object):void
Add a constraint that forces the node with id before to lie before the node with id reference. | SequenceConstraintFactory | ||
dispose():void
Disposes the SequenceConstraintFactory. | SequenceConstraintFactory |
addPlaceNodeAfterConstraint | () | method |
public function addPlaceNodeAfterConstraint(referenceId:Object, afterId:Object):void
Add a constraint that forces the node with id after
to lie after the node with id reference
.
Parameters
referenceId:Object — the id of the reference node
| |
afterId:Object — the id of the node that should be placed after the reference
|
addPlaceNodeAtHeadConstraint | () | method |
public function addPlaceNodeAtHeadConstraint(nodeId:Object):void
Add a constraint that places a node at the start of the sequence.
Parameters
nodeId:Object — the id of the node that should be placed at the start
|
addPlaceNodeAtTailConstraint | () | method |
public function addPlaceNodeAtTailConstraint(nodeId:Object):void
Add a constraint that places a node at the end of the sequence.
Parameters
nodeId:Object — the id of the node that should be placed at the end
|
addPlaceNodeBeforeConstraint | () | method |
public function addPlaceNodeBeforeConstraint(referenceId:Object, beforeId:Object):void
Add a constraint that forces the node with id before
to lie before the node with id reference
.
Parameters
referenceId:Object — the id of the reference node
| |
beforeId:Object — the id of the node that should be placed before the reference
|
dispose | () | method |
public function dispose():void
Disposes the SequenceConstraintFactory.
This method should be called when the factory is not needed anymore, i.e. after the layout has been calculated. Calling this method also clears all constraints.