Packagecom.yworks.yfiles.layout.planar
Classpublic class EdgeInserter
InheritanceEdgeInserter Inheritance YObject Inheritance Object

This class handles insertion of edges into an embedded graph.



Public Methods
 MethodDefined By
  
EdgeInserter(_planar:PlanarInformation, init:Boolean = true)
EdgeInserter
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
EdgeInserter
 Inherited
hashCode():int
YObject
  
insertEdge(_insertionPath:EdgeList, _e:Edge):EdgeList
Insert the given edge.
EdgeInserter
  
insertEdge2(_insertionPath:EdgeList, _fStart:Edge, _fStop:Edge, _e:Edge):EdgeList
Insert the given edge.
EdgeInserter
  
[static]
EdgeInserter
Protected Methods
 MethodDefined By
  
Initializes this object.
EdgeInserter
  
The graph consists of more than one component and two of them are now connected by the edge to insert
EdgeInserter
  
insertEdgeSimple(_fStart:Edge, _fStop:Edge, _e:Edge):EdgeList
Path has size 0, thus only one face has to be split !
EdgeInserter
Constructor Detail
EdgeInserter()Constructor
public function EdgeInserter(_planar:PlanarInformation, init:Boolean = true)

Parameters
_planar:PlanarInformation
 
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
initEdgeInserter()method 
protected final function initEdgeInserter(_planar:PlanarInformation):void

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

Parameters

_planar:PlanarInformation

See also

insertEdge()method 
public function insertEdge(_insertionPath:EdgeList, _e:Edge):EdgeList

Insert the given edge. Preconditions: - the edge to insert is an original edge.

Parameters

_insertionPath:EdgeList — the edges to be crossed
 
_e:Edge — the edge that should be reinserted

Returns
EdgeList — an edge list containing all segments the original edge has become
insertEdge2()method 
public function insertEdge2(_insertionPath:EdgeList, _fStart:Edge, _fStop:Edge, _e:Edge):EdgeList

Insert the given edge. Preconditions: - the edge to insert is an original edge.

Parameters

_insertionPath:EdgeList — the edges to be crossed
 
_fStart:Edge
 
_fStop:Edge
 
_e:Edge — the edge that should be reinserted

Returns
EdgeList — an edge list containing all segments the original edge has become
insertEdgeExternal()method 
protected function insertEdgeExternal(_fStart:Edge, _fStop:Edge, _e:Edge):EdgeList

The graph consists of more than one component and two of them are now connected by the edge to insert

Parameters

_fStart:Edge
 
_fStop:Edge
 
_e:Edge

Returns
EdgeList
insertEdgeSimple()method 
protected function insertEdgeSimple(_fStart:Edge, _fStop:Edge, _e:Edge):EdgeList

Path has size 0, thus only one face has to be split !

Parameters

_fStart:Edge
 
_fStop:Edge
 
_e:Edge

Returns
EdgeList
newEdgeInserter()method 
public static function newEdgeInserter(_planar:PlanarInformation):EdgeInserter

Parameters

_planar:PlanarInformation

Returns
EdgeInserter