graphics
Interface CenterLocatable

All Superinterfaces:
ILocatable
All Known Subinterfaces:
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 CenterLocatable
extends ILocatable

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

Author:
Michael Kozelsky Created on: Jul 28, 2006 CenterLocatable.java

Method Summary
 Point getCenterLocation()
          Finds the center location of this Object
 void setCenterLocation(Point p)
          Sets the location of this graphic by putting the center of the Object at the specified point
 
Methods inherited from interface graphics.ILocatable
getLocation, move, setLocation
 

Method Detail

getCenterLocation

Point getCenterLocation()
Finds the center location of this Object

Returns:
The point at the center of this Object

setCenterLocation

void setCenterLocation(Point p)
Sets the location of this graphic by putting the center of the Object at the specified point

Parameters:
p - the Point to set the center of this object to be