| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.PartitionLayouter.ChannelInterEdgeRouter
public static class PartitionLayouter.ChannelInterEdgeRouter
PartitionLayouter.ChannelInterEdgeRouter routes inter-edges using ChannelEdgeRouter.
| Constructor Summary | |
|---|---|
| PartitionLayouter.ChannelInterEdgeRouter()Creates a new PartitionLayouter.ChannelInterEdgeRouterinstance with default settings. | |
| Method Summary | |
|---|---|
|  ChannelEdgeRouter | getChannelEdgeRouter()Returns the ChannelEdgeRouterinstance used for inter-edge routing. | 
|  java.lang.Object | getInterEdgeDPKey()Returns the DataProviderkey which is used for registering the inter-edgeDataProviderpassed torouteInterEdges(LayoutGraph, DataProvider, DataProvider)with the given graph. | 
|  double | getMargin()Returns the maximum relative distance between an edge and its closest node for edges that are routed outside the bounding box of all graph nodes. | 
|  boolean | isRouteInterEdgesOnly()Returns whether or not to route inter-edges only. | 
|  void | routeInterEdges(LayoutGraph graph,
                DataProvider partitionIDDP,
                DataProvider interEdgeDP)Routes inter-edges of the partitioned graph. | 
|  void | setChannelEdgeRouter(ChannelEdgeRouter router)Specifies the ChannelEdgeRouterinstance used for inter-edge routing. | 
|  void | setInterEdgeDPKey(java.lang.Object key)Specifies the DataProviderkey which is used for registering the inter-edgeDataProviderpassed torouteInterEdges(LayoutGraph, DataProvider, DataProvider)with the given graph. | 
|  void | setMargin(double margin)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. | 
|  void | setRouteInterEdgesOnly(boolean b)Specifies whether or not to route inter-edges only. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PartitionLayouter.ChannelInterEdgeRouter()
PartitionLayouter.ChannelInterEdgeRouter instance with default settings.
| Method Detail | 
|---|
public boolean isRouteInterEdgesOnly()
Inter-edges are edges that connect nodes from different partitions. If this feature is disabled, all edges are routed by this routing algorithm.
true if only inter-edges are routed, false otherwisesetRouteInterEdgesOnly(boolean), 
routeInterEdges(LayoutGraph, DataProvider, DataProvider)public void setRouteInterEdgesOnly(boolean b)
Inter-edges are edges that connect nodes from different partitions. If this feature is disabled, all edges are routed by this routing algorithm.
b - true if only inter-edges should be routed, false otherwiserouteInterEdges(LayoutGraph, DataProvider, DataProvider)public java.lang.Object getInterEdgeDPKey()
DataProvider key which is used for registering the inter-edge DataProvider passed to
 routeInterEdges(LayoutGraph, DataProvider, DataProvider) with the given graph.
DataProvider key used for registering the inter-edge DataProvidersetInterEdgeDPKey(Object)public void setInterEdgeDPKey(java.lang.Object key)
DataProvider key which is used for registering the inter-edge DataProvider passed to
 routeInterEdges(LayoutGraph, DataProvider, DataProvider) with the given graph.
Layouter.SELECTED_EDGESkey - the DataProvider key used for registering the inter-edge DataProviderpublic ChannelEdgeRouter getChannelEdgeRouter()
ChannelEdgeRouter instance used for inter-edge routing.
setChannelEdgeRouter(ChannelEdgeRouter)public void setChannelEdgeRouter(ChannelEdgeRouter router)
ChannelEdgeRouter instance used for inter-edge routing.
ChannelEdgeRouter.  A ChannelEdgeRouter with default settings is used.router - the edge routing algorithm that should be usedpublic double getMargin()
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.
 Specifying a negative margin value effectively allows edges to be arbitrarily
 far from their closest nodes.
setMargin(double)public void setMargin(double margin)
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.
 Specifying a negative margin value effectively allows edges to be arbitrarily
 far from their closest nodes.
margin - the maximum relative distance between an edge and its closest node
public void routeInterEdges(LayoutGraph graph,
                            DataProvider partitionIDDP,
                            DataProvider interEdgeDP)
routeInterEdges in interface PartitionLayouter.InterEdgeRoutergraph - the input graphpartitionIDDP - the partition ID for each node in the graphinterEdgeDP - the map that marks inter-edgesgetInterEdgeDPKey(), 
setInterEdgeDPKey(Object)| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||