Packagecom.yworks.yfiles.layout.hierarchic.incremental
Interfacepublic interface SequenceConstraintFactory

Specifies the general contract for factory classes that can be used to associate sequence constraints to a graph. Sequence constraints affect the per layer sequence calculated in hierarchical layouts.

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.

Notes:

See also

disposed
com.yworks.yfiles.layout.LayouterKeys.NODE_ID_DPKEY


Public Methods
 MethodDefined 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
Method Detail
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.