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.
|
Shape |
getShape()
Get the shape that defines this geometry.
|
void |
setShape(Shape shape)
Set the shape that defines this geometry object.
|
void |
translate(double x,
double y)
Translate the geometry object.
|
Figure getFigure()
Shape getShape()
void setShape(Shape shape)
void translate(double x, double y)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.