|
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.CollinearBendHider
public class CollinearBendHider
CollinearBendHider
temporarily hides collinear bends on edge paths.
The bends are hidden before invoking the core layout algorith
and reinserted afterwards.
This may be necessary to keep an EdgeLayout
fixed without having the collinear bends influencing
the layout.
Field Summary | |
---|---|
static java.lang.Object |
SELECTED_EDGES
A DataProvider key for selecting edges whose bends will be temporarily hidden
If there is no DataProvider registered with this key, all edges are considered. |
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_NODES |
Constructor Summary | |
---|---|
CollinearBendHider(Layouter coreLayouter)
Creates a new instance of CollinearBendHider using the given
core layout algorithm . |
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Accepts all general graphs. |
void |
doLayout(LayoutGraph graph)
Hides collinear bends of the selected edges before invoking the core layout algorithm . |
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 |
Field Detail |
---|
public static final java.lang.Object SELECTED_EDGES
DataProvider
key for selecting edges whose bends will be temporarily hidden
If there is no DataProvider
registered with this key, all edges are considered.
Constructor Detail |
---|
public CollinearBendHider(Layouter coreLayouter)
CollinearBendHider
using the given
core layout algorithm
.
coreLayouter
- the core layout algorithmMethod Detail |
---|
public boolean canLayout(LayoutGraph graph)
graph
- the input graph
true
for all input graphsLayouter.doLayout(LayoutGraph)
public void doLayout(LayoutGraph graph)
core layout algorithm
.
The temporarily hidden bends are reinserted afterwards.
graph
- the input graphLayouter.canLayout(LayoutGraph)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |