Packagecom.yworks.yfiles.layout.router
Classpublic class SnapOuterPortsToNodeBorderStage
InheritanceSnapOuterPortsToNodeBorderStage Inheritance AbstractLayoutStage Inheritance YObject Inheritance Object

This LayoutStage will move edge ports, that are outside the corresponding nodes border, to the border. Thus guarantees ports are not outside of nodes.



Public Properties
 PropertyDefined By
 InheritedcoreLayouter : Layouter
Specifies the core layouter.
AbstractLayoutStage
Public Methods
 MethodDefined By
  
SnapOuterPortsToNodeBorderStage(init:Boolean = true)
SnapOuterPortsToNodeBorderStage
  
canLayout(graph:LayoutGraph):Boolean
[override]
SnapOuterPortsToNodeBorderStage
  
doLayout(graph:LayoutGraph):void
[override]
SnapOuterPortsToNodeBorderStage
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
SnapOuterPortsToNodeBorderStage
 Inherited
hashCode():int
YObject
  
[static]
SnapOuterPortsToNodeBorderStage
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
  
SnapOuterPortsToNodeBorderStage
Constructor Detail
SnapOuterPortsToNodeBorderStage()Constructor
public function SnapOuterPortsToNodeBorderStage(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
initSnapOuterPortsToNodeBorderStage()method 
protected final function initSnapOuterPortsToNodeBorderStage():void

newSnapOuterPortsToNodeBorderStage()method 
public static function newSnapOuterPortsToNodeBorderStage():SnapOuterPortsToNodeBorderStage

Returns
SnapOuterPortsToNodeBorderStage