|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.AbstractLayoutStage
y.layout.RemoveColinearBendsStage
public class RemoveColinearBendsStage
This LayoutStage removes all collinear bends found in the graph. If three bends with the same X- or Y-value are found, the bend in the middle is removed.
| Field Summary |
|---|
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
RemoveColinearBendsStage()
|
|
| Method Summary | |
|---|---|
boolean |
canLayout(LayoutGraph graph)
Returns true iff the given graph can be laid
out by this algorithm. |
void |
doLayout(LayoutGraph graph)
Removes collinear bends of the edges. |
double |
getScale()
Returns the current scale, to which this stage will refer, when checking for collinearity. |
void |
setScale(double scale)
Sets the current scale, to which this stage will refer, when checking for collinearity. |
| 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 RemoveColinearBendsStage()
| Method Detail |
|---|
public boolean canLayout(LayoutGraph graph)
Layoutertrue iff the given graph can be laid
out by this algorithm. Calling doLayout with
the given graph as it's argument will only success if
this method returns true.
public double getScale()
public void setScale(double scale)
scale - the current scale to which this stage will refer, when checking for collinearity.public void doLayout(LayoutGraph graph)
graph -
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||