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 java.lang.Object
implements PartitionLayouter.InterEdgeRouter

PartitionLayouter.OrthogonalInterEdgeRouter routes inter-edges using OrthogonalEdgeRouter.

 

Constructor Summary
PartitionLayouter.OrthogonalInterEdgeRouter()
          Creates a new PartitionLayouter.OrthogonalInterEdgeRouter instance with default settings.
 
Method Summary
 OrthogonalEdgeRouter getOrthogonalEdgeRouter()
          Returns the OrthogonalEdgeRouter instance used for inter-edge routing.
 java.lang.Object getSelectedEdgesDpKey()
          Returns the key to register a DataProvider which marks edges as selected.
 void routeInterEdges(LayoutGraph graph, DataProvider clusterIDDP, DataProvider interEdgeDP)
          Routes inter-edges of the partitioned graph.
 void setOrthogonalEdgeRouter(OrthogonalEdgeRouter orthogonalEdgeRouter)
          Specifies the OrthogonalEdgeRouter instance used for inter-edge routing.
 void setSelectedEdgesDpKey(java.lang.Object key)
          Specifies the key to register a DataProvider which marks 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 PartitionLayouter.OrthogonalInterEdgeRouter instance with default settings.

Method Detail

getSelectedEdgesDpKey

public java.lang.Object getSelectedEdgesDpKey()
Returns the key to register a DataProvider which marks edges as selected.

Returns:
DataProvider key
See Also:
setSelectedEdgesDpKey(Object), OrthogonalEdgeRouter.setSelectedEdgesDpKey(Object)

setSelectedEdgesDpKey

public void setSelectedEdgesDpKey(java.lang.Object key)
Specifies the key to register a DataProvider which marks edges as selected.

Default Value:
The default value is Layouter.SELECTED_EDGES
Parameters:
key - DataProvider key
Throws:
java.lang.IllegalArgumentException - if the specified key is null
See Also:
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 - the map that marks inter-edges

getOrthogonalEdgeRouter

public OrthogonalEdgeRouter getOrthogonalEdgeRouter()
Returns the OrthogonalEdgeRouter instance used for inter-edge routing.

Returns:
the OrthogonalEdgeRouter instance that is used
See Also:
setOrthogonalEdgeRouter(OrthogonalEdgeRouter)

setOrthogonalEdgeRouter

public void setOrthogonalEdgeRouter(OrthogonalEdgeRouter orthogonalEdgeRouter)
Specifies the OrthogonalEdgeRouter instance used for inter-edge routing.

Default Value:
The default value is OrthogonalEdgeRouter. An OrthogonalEdgeRouter with default settings is used.
Parameters:
orthogonalEdgeRouter - the OrthogonalEdgeRouter instance that should be used

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