Packagecom.yworks.yfiles.layout.planar
Classpublic class SelfLoopTool
InheritanceSelfLoopTool Inheritance YObject Inheritance Object

This class handles the removal resp. the reinsertion of self-loops from resp.into an embedded graph.



Public Methods
 MethodDefined By
  
SelfLoopTool(_planar:PlanarInformation, init:Boolean = true)
Returns a new instance of SelfLoopTool.
SelfLoopTool
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
SelfLoopTool
 Inherited
hashCode():int
YObject
  
Hides all self-loops in a graph.
SelfLoopTool
  
[static] Returns a new instance of SelfLoopTool.
SelfLoopTool
  
Reinserts the formerly hidden self-loops into the embedded graph.
SelfLoopTool
Protected Methods
 MethodDefined By
  
Initializes this object.
SelfLoopTool
Constructor Detail
SelfLoopTool()Constructor
public function SelfLoopTool(_planar:PlanarInformation, init:Boolean = true)

Returns a new instance of SelfLoopTool.

Parameters
_planar:PlanarInformation — the embedded graph in which the self-loops should be hidden.
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
getClass()method
override public function getClass():Class

Returns
Class
hideSelfLoops()method 
public function hideSelfLoops():void

Hides all self-loops in a graph.

initSelfLoopTool()method 
protected final function initSelfLoopTool(_planar:PlanarInformation):void

Initializes this object. See the documentation of the corresponding factory method newSelfLoopTool() for details.

Parameters

_planar:PlanarInformation

See also

newSelfLoopTool()method 
public static function newSelfLoopTool(_planar:PlanarInformation):SelfLoopTool

Returns a new instance of SelfLoopTool.

Parameters

_planar:PlanarInformation — the embedded graph in which the self-loops should be hidden.

Returns
SelfLoopTool
reinsertSelfLoops()method 
public function reinsertSelfLoops():void

Reinserts the formerly hidden self-loops into the embedded graph. Precondition: Edge order must be ok and faces must be calculated in the planar embedding.