|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GeometricObject
All the objects who want to be Geometric must implement this interface.
| Method Summary | |
|---|---|
boolean |
containsGeometricObject(GeometricObject object)
Returns false if the argument is not completely inside this object. |
boolean |
containsGeometricObjects(GeometricObject[] objects)
Returns false if the objects in the input array are not completely inside this object. |
GeometricObject |
copy()
This method copies the geometric object (includeing the underlying data and returns it. |
java.awt.Rectangle |
getBounds()
Return the bounds in the form of a java Rectangle. |
Polygon |
getDataPoints()
This method is used to get the original data points that forms this GeometricObject |
int |
getIntType()
Returns the static descriptive type that it is; |
Vertex[] |
getOriginalVertices()
This method is used to get the original data points that form the geometric object in their vertex form. |
Polygon |
getPolygonalBounds()
This method should return a polygon that fully contains the current object. |
Rectangle |
getRectangularBounds()
This method should return the Rectangular bounds of the object. |
void |
setDataPoints(Polygon points)
This method is used to set the original data points that forms this GeometricObject |
void |
setOriginalVertices(Vertex[] pts)
|
int |
spatialRelation(GeometricObject object)
This method should return the spatial relation of the input parameter with respect to this object. |
boolean |
touches(GeometricObject object)
This method should return true if the input object touches this geometric object. |
| Methods inherited from interface edu.mit.sketch.grammar.Terminal |
|---|
getTimeStamp, setTimeStamp |
| Methods inherited from interface edu.mit.sketch.ui.Paintable |
|---|
getType, paint, paint, paintOriginal, setGraphicsContext |
| Methods inherited from interface edu.mit.sketch.geom.Translatable |
|---|
pointIsOn, pointIsOnOriginal, translate |
| Method Detail |
|---|
int getIntType()
Polygon getPolygonalBounds()
boolean touches(GeometricObject object)
int spatialRelation(GeometricObject object)
Rectangle getRectangularBounds()
java.awt.Rectangle getBounds()
getBounds in interface Painterboolean containsGeometricObject(GeometricObject object)
boolean containsGeometricObjects(GeometricObject[] objects)
void setDataPoints(Polygon points)
Polygon getDataPoints()
Vertex[] getOriginalVertices()
void setOriginalVertices(Vertex[] pts)
GeometricObject copy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||