public interface Geometry
This interface is fairly "loose," because there are so many different ways that figures might choose to allow access to their geometry. It is not intended to be rigid framework-style interface that defines what implementors should do, but merely to provide a way to loosely group the geometry classes together.
Modifier and Type | Method and Description |
---|---|
Figure |
getFigure()
Get the figure to which this geometry object is attached.
|
java.awt.Shape |
getShape()
Get the shape that defines this geometry.
|
void |
setShape(java.awt.Shape shape)
Set the shape that defines this geometry object.
|
void |
translate(double x,
double y)
Translate the geometry object.
|
Figure getFigure()
java.awt.Shape getShape()
void setShape(java.awt.Shape shape)
void translate(double x, double y)