Packagecom.yworks.yfiles.layout
Classpublic class PortConstraintEnforcementStage
InheritancePortConstraintEnforcementStage Inheritance AbstractLayoutStage Inheritance YObject Inheritance Object

This layout stage can be used to enforce that a layout algorithm will not change the relative coordinates of ports that are associated with a strong/fixed port constraint. Usage:
 //prepare port constraints graph.addDataProvider(PortConstraintKeys.SOURCE_PORT_CONSTRAINT_KEY, createSPCs(graph)); graph.addDataProvider(PortConstraintKeys.TARGET_PORT_CONSTRAINT_KEY, createTPCs(graph)); //create layout pipeline OrganicLayouter layouter = new OrganicLayouter(); PortConstraintEnforcementStage stage = new PortConstraintEnforcementStage(); stage.setCoreLayouter(organic); //launch algorithms new BufferedLayouter(stage).doLayout(graph); 



Public Properties
 PropertyDefined By
 InheritedcoreLayouter : Layouter
Specifies the core layouter.
AbstractLayoutStage
Public Methods
 MethodDefined By
  
PortConstraintEnforcementStage(init:Boolean = true)
PortConstraintEnforcementStage
  
canLayout(graph:LayoutGraph):Boolean
[override]
PortConstraintEnforcementStage
  
doLayout(graph:LayoutGraph):void
[override]
PortConstraintEnforcementStage
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
PortConstraintEnforcementStage
 Inherited
hashCode():int
YObject
  
[static]
PortConstraintEnforcementStage
Protected Methods
 MethodDefined By
 Inherited
canLayoutCore(graph:LayoutGraph):Boolean
Queries the core layouter whether or not the given graph can be laid out.
AbstractLayoutStage
 Inherited
Invokes the layout routine of the core layouter.
AbstractLayoutStage
 Inherited
AbstractLayoutStage
 Inherited
AbstractLayoutStage
  
PortConstraintEnforcementStage
Constructor Detail
PortConstraintEnforcementStage()Constructor
public function PortConstraintEnforcementStage(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
canLayout()method
override public function canLayout(graph:LayoutGraph):Boolean

Parameters

graph:LayoutGraph

Returns
Boolean
doLayout()method 
override public function doLayout(graph:LayoutGraph):void

Parameters

graph:LayoutGraph

getClass()method 
override public function getClass():Class

Returns
Class
initPortConstraintEnforcementStage()method 
protected final function initPortConstraintEnforcementStage():void

newPortConstraintEnforcementStage()method 
public static function newPortConstraintEnforcementStage():PortConstraintEnforcementStage

Returns
PortConstraintEnforcementStage