|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.CanonicMultiStageLayouter y.layout.circular.SingleCycleLayouter
public class SingleCycleLayouter
A layouter that places the nodes of a graph on a cycle.
Here is an sample output of the layouter with activated automatic radius determination.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
SingleCycleLayouter()
|
Method Summary | |
---|---|
boolean |
canLayoutCore(LayoutGraph graph)
Always returns true . |
void |
doLayoutCore(LayoutGraph graph)
Core layout routine. |
boolean |
getAutomaticRadius()
Returns whether or not to choose the cycle radius automatically. |
double |
getFixedRadius()
Returns the fixed radius for the cycle on which the nodes of the graph will be placed. |
double |
getInitialAngle()
Get the angle for the first node. |
double |
getLastAppliedRadius()
Returns the radius last applied by this layouter. |
int |
getMinimalNodeDistance()
Returns the distance to keep between the nodes on the cycle Default value is 30.0. |
double |
getMinimalRadius()
Returns the minimal radius for the cycle on which the nodes are placed. |
NodeSequencer |
getNodeSequencer()
Returns the node sequencer used to determine the order of nodes around a cycle. |
boolean |
isFromSketchModeEnabled()
Returns whether or not to take the coordinates of the input diagram into account when arranging the nodes. |
void |
setAutomaticRadius(boolean automatic)
Specifies whether or not the radius for the layout should be determined automatically. |
void |
setFixedRadius(double r)
Sets a fixed radius for the cycle on which the nodes of the graph will be placed. |
void |
setFromSketchModeEnabled(boolean fromSketchModeEnabled)
Determines whether or not to take the coordinates of the input diagram into account when arranging the nodes of the partition. |
void |
setInitialAngle(double initialAngle)
Set the angle for the first node of the sequence. |
void |
setMinimalNodeDistance(int d)
Sets the minimal distance to keep between the nodes on the cycle This feature is ignored if the automatic radius feature is deactivated. |
void |
setMinimalRadius(double min)
Sets the minimal radius for the cycle on which the nodes are placed. |
void |
setNodeSequencer(NodeSequencer s)
Sets the node sequencer used to determine the order of nodes around a cycle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleCycleLayouter()
Method Detail |
---|
public double getInitialAngle()
public void setInitialAngle(double initialAngle)
CircularLayouter
.
initialAngle
- the angle for the first node in rad
Default value is 0.0public boolean isFromSketchModeEnabled()
setFromSketchModeEnabled(boolean)
public void setFromSketchModeEnabled(boolean fromSketchModeEnabled)
fromSketchModeEnabled
- public void setMinimalNodeDistance(int d)
public int getMinimalNodeDistance()
public void setFixedRadius(double r)
public double getFixedRadius()
public void setMinimalRadius(double min)
public double getMinimalRadius()
public void setAutomaticRadius(boolean automatic)
getMinimalNodeDistance()
apart.
If this feature is deactivated the radius specified via
setFixedRadius(double)
will be applied.
By default this feature is enabled.
public boolean getAutomaticRadius()
public void setNodeSequencer(NodeSequencer s)
public NodeSequencer getNodeSequencer()
public double getLastAppliedRadius()
public boolean canLayoutCore(LayoutGraph graph)
true
. Yes we can handle anything!
canLayoutCore
in class CanonicMultiStageLayouter
public void doLayoutCore(LayoutGraph graph)
doLayoutCore
in class CanonicMultiStageLayouter
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |