Packagecom.yworks.yfiles.layout
Classpublic class PartitionLayouter_ChannelInterEdgeRouter
InheritancePartitionLayouter_ChannelInterEdgeRouter Inheritance YObject Inheritance Object
Implements PartitionLayouter_InterEdgeRouter

InterEdgeRouter implementation that routes inter-edges using com.yworks.yfiles.layout.router.ChannelEdgeRouter.

See also

com.yworks.yfiles.layout.router.ChannelEdgeRouter


Public Properties
 PropertyDefined By
  channelEdgeRouter : ChannelEdgeRouter
Specifies the com.yworks.yfiles.layout.router.ChannelEdgeRouter instance used to route inter-edges.
PartitionLayouter_ChannelInterEdgeRouter
  interEdgeDPKey : Object
Specifies the com.yworks.yfiles.base.DataProvider key which is used to register the inter-edge data provider passed to routeInterEdges() on the given graph.
PartitionLayouter_ChannelInterEdgeRouter
  margin : Number
Getter: Returns the maximum relative distance between an edge and its closest node for edges routed outside the bounding box of all graph nodes.
PartitionLayouter_ChannelInterEdgeRouter
  routeInterEdgesOnly : Boolean
Getter: Returns true if this ChannelInterEdgeRouter is configured to route inter-partition edges only.
PartitionLayouter_ChannelInterEdgeRouter
Public Methods
 MethodDefined By
  
Creates a new instance of this class.
PartitionLayouter_ChannelInterEdgeRouter
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
PartitionLayouter_ChannelInterEdgeRouter
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance of this class.
PartitionLayouter_ChannelInterEdgeRouter
  
routeInterEdges(graph:LayoutGraph, partitionIDDP:DataProvider, interEdgeDP:DataProvider):void
Routes inter-edges of the partitioned graph.
PartitionLayouter_ChannelInterEdgeRouter
Protected Methods
 MethodDefined By
  
Initializes this object.
PartitionLayouter_ChannelInterEdgeRouter
Property Detail
channelEdgeRouterproperty
channelEdgeRouter:ChannelEdgeRouter

Specifies the com.yworks.yfiles.layout.router.ChannelEdgeRouter instance used to route inter-edges.


Implementation
    public function get channelEdgeRouter():ChannelEdgeRouter
    public function set channelEdgeRouter(value:ChannelEdgeRouter):void

See also

interEdgeDPKeyproperty 
interEdgeDPKey:Object

Specifies the com.yworks.yfiles.base.DataProvider key which is used to register the inter-edge data provider passed to routeInterEdges() on the given graph. Defaults to com.yworks.yfiles.layout.LayouterKeys.SELECTED_EDGES.


Implementation
    public function get interEdgeDPKey():Object
    public function set interEdgeDPKey(value:Object):void

See also

marginproperty 
margin:Number

Getter: Returns the maximum relative distance between an edge and its closest node for edges routed outside the bounding box of all graph nodes. A negative value means that there is no restriction for the edge-node distance.

Setter: Specifies the maximum relative distance between an edge and its closest node for edges that are routed outside the bounding box of all graph nodes. The value is relative in the way that edges to the left or right of the nodes' bounding box must satisfy dist(edge, bounding box) <= (bounding box width) * margin and edges above or below the nodes' bounding box must satisfy dist(edge, bounding box) <= (bounding box height) * margin. Passing in a negative value effectively allow edges to be arbitrarily far from their closest nodes. By default margin is set to -1.0.


Implementation
    public function get margin():Number
    public function set margin(value:Number):void
routeInterEdgesOnlyproperty 
routeInterEdgesOnly:Boolean

Getter: Returns true if this ChannelInterEdgeRouter is configured to route inter-partition edges only. By default, all edges are routed, i.e. routeInterEdgesOnly is set to false.

Setter: Specifies whether to route inter-partition edges only. By default, all edges are routed, i.e. routeInterEdgesOnly is set to false.


Implementation
    public function get routeInterEdgesOnly():Boolean
    public function set routeInterEdgesOnly(value:Boolean):void

See also

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

Creates a new instance of this class.

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
getClass()method
override public function getClass():Class

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

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

See also

newPartitionLayouter_ChannelInterEdgeRouter()method 
public static function newPartitionLayouter_ChannelInterEdgeRouter():PartitionLayouter_ChannelInterEdgeRouter

Creates a new instance of this class.

Returns
PartitionLayouter_ChannelInterEdgeRouter
routeInterEdges()method 
public function routeInterEdges(graph:LayoutGraph, partitionIDDP:DataProvider, interEdgeDP:DataProvider):void

Routes inter-edges of the partitioned graph. This implementation will register/deregister interEdgeDP on the specified input graph before/after doing any actual routing.

Parameters

graph:LayoutGraph — the input graph.
 
partitionIDDP:DataProvider — the partition id for each node in the graph.
 
interEdgeDP:DataProvider — holds a boolean value for each edge of the graph indicating if the edge is an inter-edge or not.

See also