public interface Drawable2DInterface
Drawable2DInterface
is the interface shared by all two dimensional
graphical objects - rectangles, ovals, arcs, and text.
Method Summary | |
---|---|
double |
getDoubleHeight()
Return the height of the rectangle bounding this object, in double precision. |
double |
getDoubleWidth()
Return the height of the rectangle bounding this object, in double precision. |
int |
getHeight()
Return the width of the rectangle bounding this object. |
int |
getWidth()
Return the height of the rectangle bounding this object. |
boolean |
overlaps(Drawable2DInterface other)
Return true if the rectangle bounding this object overlaps with the
rectangle bounding another object; false otherwise. |
Methods inherited from interface objectdraw.LocatableInterface |
---|
getDoubleX, getDoubleY, getLocation, getX, getY |
Methods inherited from interface objectdraw.DrawableInterface |
---|
addToCanvas, contains, getCanvas, getColor, hide, isHidden, move, moveTo, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, show |
Method Detail |
---|
double getDoubleHeight()
double getDoubleWidth()
int getHeight()
int getWidth()
boolean overlaps(Drawable2DInterface other)
true
if the rectangle bounding this object overlaps with the
rectangle bounding another object; false
otherwise.
other
- another two dimensional object to check for overlapping with