public interface LocatableInterface
LocatableInterface
is an interface shared by all objects except for
lines, containing the methods for retrieving the object's reference point. This point is
typically the top left of the object. For a Turtle
, it is the current location
of the turtle, and for a Text
, it is the location of the basis.
Method Summary | |
---|---|
double |
getDoubleX()
Get this object's x coordinate, in double precision. |
double |
getDoubleY()
Get this object's y coordinate, in double precision. |
Location |
getLocation()
Get this object's location. |
int |
getX()
Get this object's x coordinate. |
int |
getY()
Get this object's y coordinate. |
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 getDoubleX()
double getDoubleY()
Location getLocation()
Location
of this object.int getX()
int getY()