|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jdsl.extension.LEDA.Layout.DefaultGraphLayout
|
+--jdsl.extension.LEDA.Layout.CircleGraphLayout
CircleGraphLayout provides a class
for graph layout algorithms.
All vertices are set on a circle's border.
For short-cut this circle is named C.
| Constructor Summary | |
CircleGraphLayout()
Empty constructor. |
|
CircleGraphLayout(CircleGraphLayout other)
A Copy-Constructor. |
|
| Method Summary | |
void |
calculation(java.util.Enumeration objects,
int number)
Calculate a layout based on given object enumeration. |
void |
calculation(jdsl.graph.api.InspectableGraph graph)
Calculate a layout based on given graph graph. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
Point |
getMiddelPoint()
Returns current middel point of circle C. |
double |
getRadius()
Retuns current radius of circle C. |
void |
setMiddelPoint(Point m)
Set current middel point of circle C. |
void |
setRadius(double r)
Sets current radius of circle C. |
| Methods inherited from class jdsl.extension.LEDA.Layout.DefaultGraphLayout |
calculation,
calculation,
clearLayout,
getPosition,
getPosition,
merge,
merge,
setEdgeAsStraightLine,
setPosition,
setPosition,
setX,
setY,
update,
update |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public CircleGraphLayout()
public CircleGraphLayout(CircleGraphLayout other)
other - given layout to copy| Method Detail |
public java.lang.Object clone()
Cloneablepublic void calculation(jdsl.graph.api.InspectableGraph graph)
graph.
Here all vertives are set on C' border and
all edges are representated as straight lines.graph - given graph
public void calculation(java.util.Enumeration objects,
int number)
enumeration.
Only Vertices are respected.
Here all given vertives are set on the circle's border .objects - given enumerationnumber - number of segments on circle's borderpublic void setRadius(double r)
r - new radiuspublic double getRadius()
public void setMiddelPoint(Point m)
m - new middel pointpublic Point getMiddelPoint()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||