Package | com.yworks.yfiles.layout.router |
Class | public class StraightLineEdgeRouter |
Inheritance | StraightLineEdgeRouter AbstractLayoutStage YObject Object |
Subclasses | PartialLayouter_StraightLineEdgeRouter |
Property | Defined By | ||
---|---|---|---|
coreLayouter : Layouter
Specifies the core layouter. | AbstractLayoutStage | ||
selectedEdgesDpKey : Object
Specifies the data provider key used to look up the selected state of the edges of the graph to be laid out. | StraightLineEdgeRouter | ||
selectedNodesDpKey : Object
Specifies the data provider key used to look up the selected state of the nodes of the graph to be laid out. | StraightLineEdgeRouter | ||
sphereOfAction : int
Specifies the edge (sub-)set to be routed. | StraightLineEdgeRouter |
Method | Defined By | ||
---|---|---|---|
StraightLineEdgeRouter(init:Boolean = true)
Creates a new StraightLineEdgeRouter. | StraightLineEdgeRouter | ||
canLayout(graph:LayoutGraph):Boolean [override] | StraightLineEdgeRouter | ||
doLayout(graph:LayoutGraph):void [override] | StraightLineEdgeRouter | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | StraightLineEdgeRouter | ||
hashCode():int | YObject | ||
[static]
Creates a new StraightLineEdgeRouter. | StraightLineEdgeRouter | ||
[static]
Creates a new StraightLineEdgeRouter that uses the given layouter instance as core layouter. | StraightLineEdgeRouter |
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 | ||
initAbstractLayoutStage1():void | AbstractLayoutStage | ||
initAbstractLayoutStage2(core:Layouter):void | AbstractLayoutStage | ||
initStraightLineEdgeRouter1():void
Initializes this object. | StraightLineEdgeRouter | ||
initStraightLineEdgeRouter2(core:Layouter):void
Initializes this object. | StraightLineEdgeRouter |
Constant | Defined By | ||
---|---|---|---|
ROUTE_ALL_EDGES : int = 0 [static]
Sphere of action specifier. | StraightLineEdgeRouter | ||
ROUTE_EDGES_AT_SELECTED_NODES : int = 4 [static]
Sphere of action specifier. | StraightLineEdgeRouter | ||
ROUTE_SELECTED_EDGES : int = 2 [static]
Sphere of action specifier. | StraightLineEdgeRouter |
selectedEdgesDpKey | property |
selectedEdgesDpKey:Object
Specifies the data provider key used to look up the selected state of the edges of the graph to be laid out. By default, com.yworks.yfiles.layout.LayouterKeys.SELECTED_EDGES is used.
If the sphere of action is set to ROUTE_SELECTED_EDGES, only the selected keys are routed while all other edges are considered to have fixed routes.
public function get selectedEdgesDpKey():Object
public function set selectedEdgesDpKey(value:Object):void
IllegalArgumentException — if the specified key is null .
|
See also
selectedNodesDpKey | property |
selectedNodesDpKey:Object
Specifies the data provider key used to look up the selected state of the nodes of the graph to be laid out. By default, com.yworks.yfiles.layout.LayouterKeys.SELECTED_NODES is used.
If the sphere of action is set to ROUTE_EDGES_AT_SELECTED_NODES, only edges of selected nodes are routed while all other edges are considered to have fixed routes.
public function get selectedNodesDpKey():Object
public function set selectedNodesDpKey(value:Object):void
IllegalArgumentException — if the specified key is null .
|
See also
sphereOfAction | property |
sphereOfAction:int
Specifies the edge (sub-)set to be routed. Defaults to ROUTE_ALL_EDGES.
public function get sphereOfAction():int
public function set sphereOfAction(value:int):void
IllegalArgumentException — if the given argument is not one of the above constants.
|
See also
StraightLineEdgeRouter | () | Constructor |
public function StraightLineEdgeRouter(init:Boolean = true)
Creates a new StraightLineEdgeRouter.
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 |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initStraightLineEdgeRouter1 | () | method |
protected final function initStraightLineEdgeRouter1():void
Initializes this object. See the documentation of the corresponding factory method newStraightLineEdgeRouter1()
for details.
See also
initStraightLineEdgeRouter2 | () | method |
protected final function initStraightLineEdgeRouter2(core:Layouter):void
Initializes this object. See the documentation of the corresponding factory method newStraightLineEdgeRouter2()
for details.
Parameters
core:Layouter |
See also
newStraightLineEdgeRouter1 | () | method |
public static function newStraightLineEdgeRouter1():StraightLineEdgeRouter
Creates a new StraightLineEdgeRouter.
ReturnsStraightLineEdgeRouter |
newStraightLineEdgeRouter2 | () | method |
public static function newStraightLineEdgeRouter2(core:Layouter):StraightLineEdgeRouter
Creates a new StraightLineEdgeRouter that uses the given layouter instance as core layouter.
Parameters
core:Layouter — a layouter instance that is used as core layouter.
|
StraightLineEdgeRouter |
ROUTE_ALL_EDGES | Constant |
public static const ROUTE_ALL_EDGES:int = 0
Sphere of action specifier. Route all edges of the input graph.
See also
ROUTE_EDGES_AT_SELECTED_NODES | Constant |
public static const ROUTE_EDGES_AT_SELECTED_NODES:int = 4
Sphere of action specifier. Route only edges connected to selected nodes. The selection state of a node is determined by a boolean value returned by the data provider associated with the data provider key selectedNodesDpKey.
See also
ROUTE_SELECTED_EDGES | Constant |
public static const ROUTE_SELECTED_EDGES:int = 2
Sphere of action specifier. Route only selected edges of the input graph. The selection state of an edge is determined by a boolean value returned by the data provider associated with the data provider key selectedEdgesDpKey.
See also