Packagecom.yworks.yfiles.layout
Classpublic class DefaultEdgeLayout
InheritanceDefaultEdgeLayout Inheritance YObject Inheritance Object
Implements EdgeLayout

This class is a default implementation of the EdgeLayout interface.



Public Properties
 PropertyDefined By
  sourcePoint : YPoint
DefaultEdgeLayout
  targetPoint : YPoint
DefaultEdgeLayout
Public Methods
 MethodDefined By
  
DefaultEdgeLayout(init:Boolean = true)
Creates a new DefaultEdgeLayout.
DefaultEdgeLayout
  
addPoint(x:Number, y:Number):void
DefaultEdgeLayout
  
DefaultEdgeLayout
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
DefaultEdgeLayout
  
getPoint(index:int):YPoint
DefaultEdgeLayout
 Inherited
hashCode():int
YObject
  
[static] Creates a new DefaultEdgeLayout.
DefaultEdgeLayout
  
[static] Creates a new DefaultEdgeLayout which is the copy of another EdgeLayout.
DefaultEdgeLayout
  
DefaultEdgeLayout
  
setPoint(index:int, x:Number, y:Number):void
DefaultEdgeLayout
Protected Methods
 MethodDefined By
  
Initializes this object.
DefaultEdgeLayout
  
Initializes this object.
DefaultEdgeLayout
Property Detail
sourcePointproperty
sourcePoint:YPoint


Implementation
    public function get sourcePoint():YPoint
    public function set sourcePoint(value:YPoint):void
targetPointproperty 
targetPoint:YPoint


Implementation
    public function get targetPoint():YPoint
    public function set targetPoint(value:YPoint):void
Constructor Detail
DefaultEdgeLayout()Constructor
public function DefaultEdgeLayout(init:Boolean = true)

Creates a new DefaultEdgeLayout.

Parameters
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
addPoint()method
public function addPoint(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

clearPoints()method 
public function clearPoints():void

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

Returns
Class
getPoint()method 
public function getPoint(index:int):YPoint

Parameters

index:int

Returns
YPoint
initDefaultEdgeLayout1()method 
protected final function initDefaultEdgeLayout1():void

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

See also

initDefaultEdgeLayout2()method 
protected final function initDefaultEdgeLayout2(layout:EdgeLayout):void

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

Parameters

layout:EdgeLayout

See also

newDefaultEdgeLayout1()method 
public static function newDefaultEdgeLayout1():DefaultEdgeLayout

Creates a new DefaultEdgeLayout.

Returns
DefaultEdgeLayout
newDefaultEdgeLayout2()method 
public static function newDefaultEdgeLayout2(layout:EdgeLayout):DefaultEdgeLayout

Creates a new DefaultEdgeLayout which is the copy of another EdgeLayout.

Parameters

layout:EdgeLayout — another edge layout

Returns
DefaultEdgeLayout
pointCount()method 
public function pointCount():int

Returns
int
setPoint()method 
public function setPoint(index:int, x:Number, y:Number):void

Parameters

index:int
 
x:Number
 
y:Number