Packagecom.yworks.yfiles.layout.router.polyline
Classpublic class EdgeLayoutDescriptor
InheritanceEdgeLayoutDescriptor Inheritance YObject Inheritance Object

This class is used by com.yworks.yfiles.layout.router.polyline.EdgeRouter to determine the routing details of the graph's edges.

See also

com.yworks.yfiles.layout.router.polyline.EdgeRouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
com.yworks.yfiles.layout.router.polyline.EdgeRouter


Public Properties
 PropertyDefined By
  minimalEdgeToEdgeDistance : Number
Getter: Returns the minimal distance between a pair of edges.
EdgeLayoutDescriptor
  minimalFirstSegmentLength : Number
Getter: Returns the minimal length of the first segment (at the source).
EdgeLayoutDescriptor
  minimalLastSegmentLength : Number
Getter: Returns the minimal length of the last segment (at the target).
EdgeLayoutDescriptor
  minimalNodeCornerDistance : Number
Getter: Returns the minimal distance the edge shall keep from node corners when entering or leaving the node.
EdgeLayoutDescriptor
  monotonicPathRestriction : int
Specifies the monotonic path restrictions for this edge.
EdgeLayoutDescriptor
  penaltySettings : PenaltySettings
Specifies the penalty settings that should be used for this edge.
EdgeLayoutDescriptor
Public Methods
 MethodDefined By
  
EdgeLayoutDescriptor(init:Boolean = true)
Creates a new instance of an EdgeLayoutDescriptor using the default values.
EdgeLayoutDescriptor
  
Creates a copy of this instance.
EdgeLayoutDescriptor
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
EdgeLayoutDescriptor
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance of an EdgeLayoutDescriptor using the default values.
EdgeLayoutDescriptor
Protected Methods
 MethodDefined By
  
Initializes this object.
EdgeLayoutDescriptor
Public Constants
 ConstantDefined By
  MONOTONIC_BOTH : int
[static] Constant that specifies monotonic path restrictions for edges.
EdgeLayoutDescriptor
  MONOTONIC_HORIZONTAL : int
[static] Constant that specifies monotonic path restrictions for edges.
EdgeLayoutDescriptor
  MONOTONIC_NONE : int
[static] Constant that specifies monotonic path restrictions for edges.
EdgeLayoutDescriptor
  MONOTONIC_VERTICAL : int
[static] Constant that specifies monotonic path restrictions for edges.
EdgeLayoutDescriptor
Property Detail
minimalEdgeToEdgeDistanceproperty
minimalEdgeToEdgeDistance:Number

Getter: Returns the minimal distance between a pair of edges. Default is 3.0.

Setter: Sets the minimal distance between a pair of edges. By default this value is set to 3.0.The value must be >= 0, otherwise the default value will be assigned.


Implementation
    public function get minimalEdgeToEdgeDistance():Number
    public function set minimalEdgeToEdgeDistance(value:Number):void
minimalFirstSegmentLengthproperty 
minimalFirstSegmentLength:Number

Getter: Returns the minimal length of the first segment (at the source). Default is 5.0.

Note: the first segment length starts, if present, at the halo of the source.

Setter: Sets the minimal length of the first segment (at the source). By default this value is set to 5.0. The value must be >= 0, otherwise the default value will be assigned.

Note: the resulting segment length also depends on the given grid spacing (com.yworks.yfiles.layout.router.polyline.Grid.spacing), i.e., segment length >= (int) Math.ceil(length / grid spacing).

Note: the first segment length starts, if present, at the halo of the source.


Implementation
    public function get minimalFirstSegmentLength():Number
    public function set minimalFirstSegmentLength(value:Number):void

See also

minimalLastSegmentLengthproperty 
minimalLastSegmentLength:Number

Getter: Returns the minimal length of the last segment (at the target). Default is 10.0.

Note: the last segment length ends, if present, at the halo of the target.

Setter: Sets the minimal length of the last segment (at the target). By default this value is set to 10.0. The value must be >= 0, otherwise the default value will be assigned.

Note: the resulting segment length also depends on the given grid spacing (com.yworks.yfiles.layout.router.polyline.Grid.spacing), i.e., segment length >= (int) Math.ceil(length / grid spacing).

Note: the last segment length ends, if present, at the halo of the target.


Implementation
    public function get minimalLastSegmentLength():Number
    public function set minimalLastSegmentLength(value:Number):void

See also

minimalNodeCornerDistanceproperty 
minimalNodeCornerDistance:Number

Getter: Returns the minimal distance the edge shall keep from node corners when entering or leaving the node. Default is 3.0.

Setter: Sets the minimal distance the edge shall keep from node corners when entering or leaving the node. By default this value is set to 3.0. The value must be >= 0, otherwise the default value will be assigned.


Implementation
    public function get minimalNodeCornerDistance():Number
    public function set minimalNodeCornerDistance(value:Number):void
monotonicPathRestrictionproperty 
monotonicPathRestriction:int

Specifies the monotonic path restrictions for this edge. The edge can be used with one of the following values: MONOTONIC_HORIZONTAL, MONOTONIC_VERTICAL, MONOTONIC_BOTH, or MONOTONIC_NONE. Default is MONOTONIC_NONE.


Implementation
    public function get monotonicPathRestriction():int
    public function set monotonicPathRestriction(value:int):void

See also

penaltySettingsproperty 
penaltySettings:PenaltySettings

Specifies the penalty settings that should be used for this edge. Besides specifying a completely customized setting, the user can choose between four predefined optimization strategies: com.yworks.yfiles.layout.router.polyline.PenaltySettings.OPTIMIZATION_BALANCED, com.yworks.yfiles.layout.router.polyline.PenaltySettings.OPTIMIZATION_EDGE_BENDS, com.yworks.yfiles.layout.router.polyline.PenaltySettings.OPTIMIZATION_EDGE_CROSSINGS and com.yworks.yfiles.layout.router.polyline.PenaltySettings.OPTIMIZATION_EDGE_LENGTHS.


Implementation
    public function get penaltySettings():PenaltySettings
    public function set penaltySettings(value:PenaltySettings):void

See also

Constructor Detail
EdgeLayoutDescriptor()Constructor
public function EdgeLayoutDescriptor(init:Boolean = true)

Creates a new instance of an EdgeLayoutDescriptor using the default values.

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
createCopy()method
public function createCopy():EdgeLayoutDescriptor

Creates a copy of this instance.

Returns
EdgeLayoutDescriptor — the copy.
getClass()method 
override public function getClass():Class

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

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

See also

newEdgeLayoutDescriptor()method 
public static function newEdgeLayoutDescriptor():EdgeLayoutDescriptor

Creates a new instance of an EdgeLayoutDescriptor using the default values.

Returns
EdgeLayoutDescriptor
Constant Detail
MONOTONIC_BOTHConstant
public static const MONOTONIC_BOTH:int

Constant that specifies monotonic path restrictions for edges. This constant specifies restrictions for the horizontal and vertical direction, i.e., each horizontal as well as each vertical edge segment is directed from the source to the target.

See also

MONOTONIC_HORIZONTALConstant 
public static const MONOTONIC_HORIZONTAL:int

Constant that specifies monotonic path restrictions for edges. This constant specifies restrictions for the horizontal direction, i.e., each horizontal edge segment is directed from the source to the target.

See also

MONOTONIC_NONEConstant 
public static const MONOTONIC_NONE:int

Constant that specifies monotonic path restrictions for edges. This constant specifies that there are no restrictions.

See also

MONOTONIC_VERTICALConstant 
public static const MONOTONIC_VERTICAL:int

Constant that specifies monotonic path restrictions for edges. This constant specifies restrictions for the vertical direction, i.e., each vertical edge segment is directed from the source to the target.

See also