|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Geometry
Geometry is an interface that captures the concept of an abstract figure geometry. Classes that implement this geometry are intended to be used as utility classes by figure and manipulators. Geometry objects generally provide support for reshaping and querying geometry-related aspects of figures and shapes. Generally, Geometry objects will contains some number of Site objects as part of this support.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
Figure getFigure()
java.awt.Shape getShape()
void setShape(java.awt.Shape shape)
void translate(double x, double y)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |