|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.AbstractLayoutStage y.layout.router.OrthogonalEdgeRouter y.layout.router.ChannelEdgeRouter.OrthogonalShortestPathPathFinder
public static class ChannelEdgeRouter.OrthogonalShortestPathPathFinder
This routing algorithm is a special version of class OrthogonalEdgeRouter
that can be used as a path
finding strategy for the ChannelEdgeRouter
.
This strategy takes a bit longer than the one implemented by class
OrthogonalPatternEdgeRouter
but it guarantees that there are no crossings between nodes and edges.
Field Summary |
---|
Fields inherited from class y.layout.router.OrthogonalEdgeRouter |
---|
MONOTONIC_BOTH, MONOTONIC_HORIZONTAL, MONOTONIC_NONE, MONOTONIC_VERTICAL, ROUTE_ALL_EDGES, ROUTE_EDGES_AT_SELECTED_NODES, ROUTE_SELECTED_EDGES, STYLE_ADHOC, STYLE_BALANCED, STYLE_PREFERMIDDLE, STYLE_SHORTPATH |
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
ChannelEdgeRouter.OrthogonalShortestPathPathFinder()
Creates a new instance of ChannelEdgeRouter.OrthogonalShortestPathPathFinder . |
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Checks whether or not the given graph can be handled by this class. |
void |
doLayout(LayoutGraph graph)
Performs the path finding for the edges of the input graph. |
java.lang.Object |
getAffectedEdgesDPKey()
Returns the DataProvider key to look up the selection state of the edges. |
void |
setAffectedEdgesDPKey(java.lang.Object key)
Specifies the DataProvider key to look up the selection state of the edges. |
Methods inherited from class y.layout.AbstractLayoutStage |
---|
canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelEdgeRouter.OrthogonalShortestPathPathFinder()
ChannelEdgeRouter.OrthogonalShortestPathPathFinder
.
Method Detail |
---|
public boolean canLayout(LayoutGraph graph)
true
unless the user specifies a core layout algorithm
that cannot handle this graph.
canLayout
in interface Layouter
canLayout
in class OrthogonalEdgeRouter
graph
- the input graph
true
if the input graph can be handled by this class, false
otherwiseLayouter.doLayout(LayoutGraph)
public void doLayout(LayoutGraph graph)
doLayout
in interface Layouter
doLayout
in class OrthogonalEdgeRouter
graph
- the input graphLayouter.canLayout(LayoutGraph)
public void setAffectedEdgesDPKey(java.lang.Object key)
DataProvider
key to look up the selection state of the edges.
If a DataProvider
is registered with this key, only the selected edges will be routed by this edge routing algorithm, while all
other edges will be considered to have fixed routes.
ChannelEdgeRouter.AFFECTED_EDGES
key
- the DataProvider
key for edge selection
java.lang.IllegalArgumentException
- if the specified DataProvider
key is null
public java.lang.Object getAffectedEdgesDPKey()
DataProvider
key to look up the selection state of the edges.
If a DataProvider
is registered with this key, only the selected edges will be routed by this edge routing algorithm, while all
other edges will be considered to have fixed routes.
DataProvider
key for edge selection(Object)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |