edu.uci.ics.jung.visualization.subLayout
Class CircularSubLayout
java.lang.Object
edu.uci.ics.jung.visualization.subLayout.CircularSubLayout
- All Implemented Interfaces:
- SubLayout
public class CircularSubLayout
- extends Object
- implements SubLayout
An implementation of SubLayout that places its collection of
Vertices in a circle. The center and radius are settable
properties.
- Author:
- Tom Nelson - RABA Technologies
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
radius
protected double radius
center
protected Point2D center
map
protected final Map map
CircularSubLayout
public CircularSubLayout(Collection vertices,
double radius,
Point2D center)
- create an instance with passed values
- Parameters:
vertices
- the collection of vertices to arrange in a circleradius
- the radius of the circlecenter
- the center of the circle
getRadius
public double getRadius()
setRadius
public void setRadius(double radius)
getLocation
public Point2D getLocation(ArchetypeVertex v)
- Specified by:
getLocation
in interface SubLayout