public static interface PartitionLayout.IInterEdgeRouter
PartitionLayout.IInterEdgeRouter
is responsible for routing inter-edges.
An inter-edge is an edge that connects nodes that belong to different partitions.
Modifier and Type | Method and Description |
---|---|
static PartitionLayout.IInterEdgeRouter |
createChannelInterEdgeRouter()
com.yworks.yfiles.layout.PartitionLayout.ChannelInterEdgeRouter routes inter-edges using ChannelEdgeRouter . |
static PartitionLayout.IInterEdgeRouter |
createChannelInterEdgeRouter(ChannelEdgeRouter router)
com.yworks.yfiles.layout.PartitionLayout.ChannelInterEdgeRouter routes inter-edges using ChannelEdgeRouter . |
static PartitionLayout.IInterEdgeRouter |
createPolylineInterEdgeRouter()
com.yworks.yfiles.layout.PartitionLayout.PolylineInterEdgeRouter routes inter-edges using EdgeRouter . |
static PartitionLayout.IInterEdgeRouter |
createPolylineInterEdgeRouter(EdgeRouter router)
com.yworks.yfiles.layout.PartitionLayout.PolylineInterEdgeRouter routes inter-edges using EdgeRouter . |
boolean |
isRouteInterEdgesOnly()
Gets whether or not to route inter-edges only.
|
void |
routeInterEdges(LayoutGraph graph,
IDataProvider partitionIDDP,
IDataProvider interEdgeDP)
Routes inter-edges of the partitioned graph.
|
void |
setRouteInterEdgesOnly(boolean value)
Sets whether or not to route inter-edges only.
|
static PartitionLayout.IInterEdgeRouter createChannelInterEdgeRouter()
com.yworks.yfiles.layout.PartitionLayout.ChannelInterEdgeRouter
routes inter-edges using ChannelEdgeRouter
.static PartitionLayout.IInterEdgeRouter createChannelInterEdgeRouter(ChannelEdgeRouter router)
com.yworks.yfiles.layout.PartitionLayout.ChannelInterEdgeRouter
routes inter-edges using ChannelEdgeRouter
.router
- The router instance to use for the edge routing. If not specified, a internal instance is used.static PartitionLayout.IInterEdgeRouter createPolylineInterEdgeRouter()
com.yworks.yfiles.layout.PartitionLayout.PolylineInterEdgeRouter
routes inter-edges using EdgeRouter
.static PartitionLayout.IInterEdgeRouter createPolylineInterEdgeRouter(EdgeRouter router)
com.yworks.yfiles.layout.PartitionLayout.PolylineInterEdgeRouter
routes inter-edges using EdgeRouter
.router
- The router instance to use for the edge routing. If not specified, a internal instance is used.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.
false
. All edges are routed.true
if only inter-edges are routed, false
otherwisesetRouteInterEdgesOnly(boolean)
void routeInterEdges(LayoutGraph graph, IDataProvider partitionIDDP, IDataProvider interEdgeDP)
graph
- the input graphpartitionIDDP
- the partition ID for each node in the graphinterEdgeDP
- the map that marks inter-edgesvoid setRouteInterEdgesOnly(boolean value)
Inter-edges are edges that connect nodes from different partitions. If this feature is disabled, all edges are routed by this routing algorithm.
false
. All edges are routed.value
- true
if only inter-edges are routed, false
otherwiseisRouteInterEdgesOnly()