|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.AbstractLayout com.mindfusion.diagramming.CircularLayout
public class CircularLayout
Implements a circular graph layout algorithm. Nodes are distributed evenly on the circumference of a circle at positions that result in as few link crossing as possible.
Constructor Summary | |
---|---|
CircularLayout()
Initializes a new instance of the CircularLayout class with the default settings. |
Method Summary | |
---|---|
boolean |
arrange(Diagram diagram)
Applies the layout on the specified Diagram instance. |
boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout on the specified subset of items from the specified Diagram instance. |
float |
getRadius()
Gets the radius of the layout circle. |
int |
getSiftingRounds()
Gets the number of sifts to perform during the layout. |
void |
setRadius(float value)
Sets the radius of the layout circle. |
void |
setSiftingRounds(int value)
Sets the number of sifts to perform during the layout. |
Methods inherited from class com.mindfusion.diagramming.AbstractLayout |
---|
getAnchoring, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CircularLayout()
Method Detail |
---|
public boolean arrange(Diagram diagram)
arrange
in class AbstractLayout
diagram
- The Diagram that should be arranged.
public boolean arrange(Diagram diagram, DiagramItemList items)
arrange
in class AbstractLayout
diagram
- The Diagram that should be arranged.items
- A collection of nodes and links from diagram that define the subgraph to arrange.
public void setRadius(float value)
value
- public float getRadius()
public void setSiftingRounds(int value)
value
- public int getSiftingRounds()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |