Search this API

y.layout
Class PartitionLayouter.OrthogonalInterEdgeRouter

java.lang.Object
  extended by y.layout.PartitionLayouter.OrthogonalInterEdgeRouter
All Implemented Interfaces:
PartitionLayouter.InterEdgeRouter
Enclosing class:
PartitionLayouter

public static class PartitionLayouter.OrthogonalInterEdgeRouter
extends Object
implements PartitionLayouter.InterEdgeRouter

InterEdgeRouter implementation that routes inter-edges using OrthogonalEdgeRouter.


Constructor Summary
PartitionLayouter.OrthogonalInterEdgeRouter()
          Creates a new instance of this class.
 
Method Summary
 OrthogonalEdgeRouter getOrthogonalEdgeRouter()
          Returns the OrthogonalEdgeRouter instance used to route inter-edges.
 Object getSelectedEdgesDpKey()
          Returns the DataProvider key to mark edges as selected.
 void routeInterEdges(LayoutGraph graph, DataProvider clusterIDDP, DataProvider interEdgeDP)
          Routes inter-edges of the partitioned graph.
 void setOrthogonalEdgeRouter(OrthogonalEdgeRouter orthogonalEdgeRouter)
          Sets the OrthogonalEdgeRouter instance used to route inter-edges.
 void setSelectedEdgesDpKey(Object key)
          Specifies the DataProvider key to mark edges as selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionLayouter.OrthogonalInterEdgeRouter

public PartitionLayouter.OrthogonalInterEdgeRouter()
Creates a new instance of this class.

Method Detail

getSelectedEdgesDpKey

public Object getSelectedEdgesDpKey()
Returns the DataProvider key to mark edges as selected.

By default, Layouter.SELECTED_EDGES is used.

Returns:
the DataProvider key to mark edges as selected.
See Also:
setSelectedEdgesDpKey(Object), OrthogonalEdgeRouter.getSelectedEdgesDpKey(), OrthogonalEdgeRouter.setSelectedEdgesDpKey(Object)

setSelectedEdgesDpKey

public void setSelectedEdgesDpKey(Object key)
Specifies the DataProvider key to mark edges as selected.

By default, Layouter.SELECTED_EDGES is used.

Throws:
IllegalArgumentException - if the specified key is null.
Parameters:
key - DataProvider key.
See Also:
getSelectedEdgesDpKey(), OrthogonalEdgeRouter.getSelectedEdgesDpKey(), OrthogonalEdgeRouter.setSelectedEdgesDpKey(Object)

routeInterEdges

public void routeInterEdges(LayoutGraph graph,
                            DataProvider clusterIDDP,
                            DataProvider interEdgeDP)
Description copied from interface: PartitionLayouter.InterEdgeRouter
Routes inter-edges of the partitioned graph.

Specified by:
routeInterEdges in interface PartitionLayouter.InterEdgeRouter
Parameters:
graph - the input graph
clusterIDDP - the partition id for each node in the graph.
interEdgeDP - holds a boolean value for each edge of the graph indicating if the edge is an inter-edge or not.

getOrthogonalEdgeRouter

public OrthogonalEdgeRouter getOrthogonalEdgeRouter()
Returns the OrthogonalEdgeRouter instance used to route inter-edges.


setOrthogonalEdgeRouter

public void setOrthogonalEdgeRouter(OrthogonalEdgeRouter orthogonalEdgeRouter)
Sets the OrthogonalEdgeRouter instance used to route inter-edges.


© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.