Package | com.yworks.yfiles.layout |
Class | public class ParallelEdgeLayouter |
Inheritance | ParallelEdgeLayouter AbstractLayoutStage YObject Object |
Property | Defined By | ||
---|---|---|---|
absJoinEndDistance : Number
Specifies the absolute distance from the end point of the lines to the first parallel segments if end joining is enabled. | ParallelEdgeLayouter | ||
adaptiveLineDistances : Boolean
Specifies whether or not the line distances between parallel edges should be determined automatically according to the nodes' bounds. | ParallelEdgeLayouter | ||
adjustLeadingEdge : Boolean
Specifies whether this layouter will adjust the leading edge to obtain more symmetric results. | ParallelEdgeLayouter | ||
coreLayouter : Layouter
Specifies the core layouter. | AbstractLayoutStage | ||
directedMode : Boolean
Specifies whether or not edges should be considered as directed. | ParallelEdgeLayouter | ||
joinEnds : Boolean
Specifies whether or not to join end points of parallel edges. | ParallelEdgeLayouter | ||
lineDistance : Number
Specifies the distance between two adjacent paths that run in parallel. | ParallelEdgeLayouter | ||
parallelEdges : EdgeMap
EdgeMap that associates a hidden edge with the unique parallel edge not hidden from the core layouter. | ParallelEdgeLayouter | ||
relJoinEndDistance : Number
Specifies the relative distance from the end point of the lines to the first parallel segments if end joining is enabled. | ParallelEdgeLayouter |
Property | Defined By | ||
---|---|---|---|
hiddenEdges : EdgeList
Holds the list of parallel edges that are hidden from the core layouter. | ParallelEdgeLayouter | ||
_lineDistance : Number
Holds the line distance assigned between parallel edges. | ParallelEdgeLayouter |
Method | Defined By | ||
---|---|---|---|
ParallelEdgeLayouter(init:Boolean = true)
Creates a new instance of ParallelEdgeLayouter with no core layouter assigned. | ParallelEdgeLayouter | ||
canLayout(graph:LayoutGraph):Boolean [override] | ParallelEdgeLayouter | ||
doLayout(graph:LayoutGraph):void [override] | ParallelEdgeLayouter | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | ParallelEdgeLayouter | ||
hashCode():int | YObject | ||
[static]
Creates a new instance of ParallelEdgeLayouter with no core layouter assigned. | ParallelEdgeLayouter | ||
[static]
Creates a new instance of ParallelEdgeLayouter for the given core layouter. | ParallelEdgeLayouter |
Method | Defined By | ||
---|---|---|---|
canLayoutCore(graph:LayoutGraph):Boolean
Queries the core layouter whether or not the given graph can be laid out. | AbstractLayoutStage | ||
doLayoutCore(graph:LayoutGraph):void
Invokes the layout routine of the core layouter. | AbstractLayoutStage | ||
findAndHideParallelEdges(graph:Graph):void
This method detects parallel edges of the given graph. | ParallelEdgeLayouter | ||
initAbstractLayoutStage1():void | AbstractLayoutStage | ||
initAbstractLayoutStage2(core:Layouter):void | AbstractLayoutStage | ||
initParallelEdgeLayouter1():void
Initializes this object. | ParallelEdgeLayouter | ||
initParallelEdgeLayouter2(coreLayouter:Layouter):void
Initializes this object. | ParallelEdgeLayouter | ||
This method assigns a layout to parallel edges. | ParallelEdgeLayouter |
Constant | Defined By | ||
---|---|---|---|
LEADING_EDGE_DPKEY : Object = y.layout.ParallelEdgeLayouter.MASTER_EDGE_DPKEY [static]
A com.yworks.yfiles.base.DataProvider key that can be used to specify which parallel edge should be used as leading edge, i.e., as the edge whose layout is used to obtain the layout of the corresponding parallel edges. | ParallelEdgeLayouter | ||
SCOPE_DPKEY : Object = y.layout.ParallelEdgeLayouter.SCOPE_DPKEY [static]
A com.yworks.yfiles.base.DataProvider key that can be used to tell the stage whether edges should be included in or excluded from the calculation. | ParallelEdgeLayouter |
_lineDistance | property |
protected var _lineDistance:Number
Holds the line distance assigned between parallel edges.
absJoinEndDistance | property |
absJoinEndDistance:Number
Specifies the absolute distance from the end point of the lines to the first parallel segments if end joining is enabled.
public function get absJoinEndDistance():Number
public function set absJoinEndDistance(value:Number):void
adaptiveLineDistances | property |
adaptiveLineDistances:Boolean
Specifies whether or not the line distances between parallel edges should be determined automatically according to the nodes' bounds. If enabled, the line distances are chosen such that all parallel edges can be drawn straight-line and still connect to the nodes' bounds. By default this feature is enabled.
public function get adaptiveLineDistances():Boolean
public function set adaptiveLineDistances(value:Boolean):void
adjustLeadingEdge | property |
adjustLeadingEdge:Boolean
Specifies whether this layouter will adjust the leading edge to obtain more symmetric results. By default, this feature is enabled.
public function get adjustLeadingEdge():Boolean
public function set adjustLeadingEdge(value:Boolean):void
directedMode | property |
directedMode:Boolean
Specifies whether or not edges should be considered as directed. In directed mode only edges that have the same source and target node will be routed in parallel (e.g., two edges (v,w) and (w,v) won't be routed in parallel). In undirected mode, all edges connecting the same pair of nodes will be routed in parallel. By default this feature is disabled.
public function get directedMode():Boolean
public function set directedMode(value:Boolean):void
hiddenEdges | property |
protected var hiddenEdges:EdgeList
Holds the list of parallel edges that are hidden from the core layouter.
joinEnds | property |
joinEnds:Boolean
Specifies whether or not to join end points of parallel edges. If enabled all lines end at the same point. By default, this feature is disabled.
public function get joinEnds():Boolean
public function set joinEnds(value:Boolean):void
lineDistance | property |
lineDistance:Number
Specifies the distance between two adjacent paths that run in parallel. Note: if adaptive line distances are used (see adaptiveLineDistances) the real distance may be less than the given line distance.
public function get lineDistance():Number
public function set lineDistance(value:Number):void
See also
parallelEdges | property |
public var parallelEdges:EdgeMap
EdgeMap that associates a hidden edge with the unique parallel edge not hidden from the core layouter.
relJoinEndDistance | property |
relJoinEndDistance:Number
Specifies the relative distance from the end point of the lines to the first parallel segments if end joining is enabled. The length will be relative to the corresponding original segment's length.
public function get relJoinEndDistance():Number
public function set relJoinEndDistance(value:Number):void
ParallelEdgeLayouter | () | Constructor |
public function ParallelEdgeLayouter(init:Boolean = true)
Creates a new instance of ParallelEdgeLayouter with no core layouter assigned.
Parametersinit: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.
|
canLayout | () | method |
override public function canLayout(graph:LayoutGraph):Boolean
Parameters
graph:LayoutGraph |
Boolean |
doLayout | () | method |
findAndHideParallelEdges | () | method |
protected function findAndHideParallelEdges(graph:Graph):void
This method detects parallel edges of the given graph. From each set of parallel edges it hides all but one edge from the given graph.
Parameters
graph:Graph |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initParallelEdgeLayouter1 | () | method |
protected final function initParallelEdgeLayouter1():void
Initializes this object. See the documentation of the corresponding factory method newParallelEdgeLayouter1()
for details.
See also
initParallelEdgeLayouter2 | () | method |
protected final function initParallelEdgeLayouter2(coreLayouter:Layouter):void
Initializes this object. See the documentation of the corresponding factory method newParallelEdgeLayouter2()
for details.
Parameters
coreLayouter:Layouter |
See also
layoutParallelEdges | () | method |
protected function layoutParallelEdges(graph:LayoutGraph, parallelEdges:EdgeMap):void
This method assigns a layout to parallel edges. The layout for each parallel edge follows the layout of the one edge not being removed from the core layouter.
Parameters
graph:LayoutGraph | |
parallelEdges:EdgeMap |
newParallelEdgeLayouter1 | () | method |
public static function newParallelEdgeLayouter1():ParallelEdgeLayouter
Creates a new instance of ParallelEdgeLayouter with no core layouter assigned.
ReturnsParallelEdgeLayouter |
newParallelEdgeLayouter2 | () | method |
public static function newParallelEdgeLayouter2(coreLayouter:Layouter):ParallelEdgeLayouter
Creates a new instance of ParallelEdgeLayouter for the given core layouter.
Parameters
coreLayouter:Layouter |
ParallelEdgeLayouter |
See also
LEADING_EDGE_DPKEY | Constant |
public static const LEADING_EDGE_DPKEY:Object = y.layout.ParallelEdgeLayouter.MASTER_EDGE_DPKEY
A com.yworks.yfiles.base.DataProvider key that can be used to specify which parallel edge should be used as leading edge, i.e., as the edge whose layout is used to obtain the layout of the corresponding parallel edges. For every com.yworks.yfiles.base.Edge instance the provider should yield boolean (com.yworks.yfiles.base.DataProvider.getBool()) values to indicate whether an edge is a leading edge.
See also
SCOPE_DPKEY | Constant |
public static const SCOPE_DPKEY:Object = y.layout.ParallelEdgeLayouter.SCOPE_DPKEY
A com.yworks.yfiles.base.DataProvider key that can be used to tell the stage whether edges should be included in or excluded from the calculation. For every com.yworks.yfiles.base.Edge instance the provider should yield boolean (com.yworks.yfiles.base.DataProvider.getBool()) values to indicate whether an edge should be laid out. If no data provider is registered for the given key, all edges will be laid out.
See also