objectdraw
Interface LocatableInterface

All Superinterfaces:
DrawableInterface
All Known Subinterfaces:
Drawable2DInterface
All Known Implementing Classes:
FilledArc, FilledOval, FilledRect, FilledRoundedRect, FramedArc, FramedOval, FramedRect, FramedRoundedRect, objectdraw.ObjectDrawRectangularShape, Text, Turtle, VisibleImage

public interface LocatableInterface
extends DrawableInterface

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.

Author:
Russell Zahniser (russell@zahniser.net)

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

getDoubleX

double getDoubleX()
Get this object's x coordinate, in double precision.

Returns:
this object's x coordinate, in double precision

getDoubleY

double getDoubleY()
Get this object's y coordinate, in double precision.

Returns:
this object's y coordinate, in double precision

getLocation

Location getLocation()
Get this object's location.

Returns:
the Location of this object.

getX

int getX()
Get this object's x coordinate.

Returns:
this object's x coordinate

getY

int getY()
Get this object's y coordinate.

Returns:
this object's y coordinate