public class CircleGeometry extends java.lang.Object implements Geometry
Modifier and Type | Class and Description |
---|---|
class |
CircleGeometry.CircleSite
CircleSite is the local class that implements
an editable site of Rectangle objects.
|
Constructor and Description |
---|
CircleGeometry(Figure figure,
java.awt.geom.Rectangle2D bounds)
Create a new geometry object on the given figure and with the
given initial bounds.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds()
Get the current rectangle that defines this geometry.
|
Figure |
getFigure()
Get the figure to which this geometry object is attached.
|
double |
getMinimumSize()
Get the minimum size of the rectangle.
|
Site |
getN()
Get the north site (only site).
|
java.awt.Shape |
getShape()
Get the current shape that defines this geometry
|
Site |
getSite(int id)
Get the single site with the given ID.
|
void |
setBounds(java.awt.geom.Rectangle2D rect)
Set the rectangle that defines this geometry object.
|
void |
setMinimumSize(double minimumSize)
Set the minimum size of the rectangle.
|
void |
setShape(java.awt.Shape shape)
Set the shape that defines this geometry object.
|
java.util.Iterator |
sites()
Return an iteration over the sites in this geometry object.
|
void |
translate(double x,
double y)
Translate the geometry object
|
public CircleGeometry(Figure figure, java.awt.geom.Rectangle2D bounds)
public Site getSite(int id)
public double getMinimumSize()
public Site getN()
public Figure getFigure()
public java.awt.Shape getShape()
public java.awt.geom.Rectangle2D getBounds()
public void setMinimumSize(double minimumSize)
public void setShape(java.awt.Shape shape)
public void setBounds(java.awt.geom.Rectangle2D rect)
public java.util.Iterator sites()