graphics
Interface ILocatable

All Known Subinterfaces:
CenterLocatable, IColorableGraphic, IGraphic
All Known Implementing Classes:
AbstractColorableGraphic, AbstractGraphic, BouncingBall, BouncingBall, BouncingSquare, BouncingSquare, BouncingTriangle, BouncingTriangle, Breakout, CompoundGraphic, Earth, Elephant, Ellipse, Fish, FramedEllipse, FramedRectangle, Image, Polygon, Rectangle, Rectangle3D, TripleShape

public interface ILocatable

The interface that defines the capabilties for an object that can have its location accessed/mutated

Author:
Michael Kozelsky Created on: Jul 29, 2006 Locatable.java

Method Summary
 Point getLocation()
          Gets the location of this Object
 Vector move(Vector v)
          Moves the Object from one location to another by a specific vector
 void setLocation(Point p)
          Sets the Location of this Object to be the specified point
 

Method Detail

setLocation

void setLocation(Point p)
Sets the Location of this Object to be the specified point

Parameters:
p - the point at which to locate this Object

getLocation

Point getLocation()
Gets the location of this Object

Returns:
a java.awt.Point representing the current location of the Object

move

Vector move(Vector v)
Moves the Object from one location to another by a specific vector

Parameters:
v - The vector representing where this should move