|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E> edu.uci.ics.jung.algorithms.layout.CircleLayout<V,E>
public class CircleLayout<V,E>
A Layout
implementation that positions vertices equally spaced on a regular circle.
Nested Class Summary | |
---|---|
protected static class |
CircleLayout.CircleVertexData
|
Field Summary |
---|
Fields inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout |
---|
graph, initialized, locations, size |
Constructor Summary | |
---|---|
CircleLayout(Graph<V,E> g)
Creates an instance for the specified graph. |
Method Summary | |
---|---|
protected CircleLayout.CircleVertexData |
getCircleData(V v)
|
double |
getRadius()
Returns the radius of the circle. |
void |
initialize()
Initializes fields in the node that may not have been set during the constructor. |
void |
reset()
|
void |
setRadius(double radius)
Sets the radius of the circle. |
void |
setVertexOrder(Comparator<V> comparator)
Sets the order of the vertices in the layout according to the ordering specified by comparator . |
void |
setVertexOrder(List<V> vertex_list)
Sets the order of the vertices in the layout according to the ordering of vertex_list . |
Methods inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout |
---|
getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, setSize, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CircleLayout(Graph<V,E> g)
Method Detail |
---|
public double getRadius()
public void setRadius(double radius)
initialize()
is called.
public void setVertexOrder(Comparator<V> comparator)
comparator
.
public void setVertexOrder(List<V> vertex_list)
vertex_list
.
public void reset()
public void initialize()
Layout
protected CircleLayout.CircleVertexData getCircleData(V v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |