Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Point2D |
center |
protected java.util.Map |
map |
protected double |
radius |
Constructor and Description |
---|
CircularSubLayout(java.util.Collection vertices,
double radius,
java.awt.geom.Point2D center)
create an instance with passed values
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Point2D |
getLocation(ArchetypeVertex v) |
double |
getRadius() |
void |
setRadius(double radius) |
protected double radius
protected java.awt.geom.Point2D center
protected final java.util.Map map
public CircularSubLayout(java.util.Collection vertices, double radius, java.awt.geom.Point2D center)
vertices
- the collection of vertices to arrange in a circleradius
- the radius of the circlecenter
- the center of the circlepublic double getRadius()
public void setRadius(double radius)
public java.awt.geom.Point2D getLocation(ArchetypeVertex v)
getLocation
in interface SubLayout