cse115.graphics
Interface CenterLocatable

All Superinterfaces:
Locatable
All Known Subinterfaces:
ColorableGraphic, Graphic, MovingBody, Shape
All Known Implementing Classes:
AbstractColorableGraphic, AbstractGraphic, BouncingBall, BouncingSquare, BouncingTriangle, CompoundGraphic, Ellipse, Eye, Fish, Fish, FramedEllipse, FramedRectangle, Image, Mouth, MovingBodyAdapter, Oval, Painter, Polygon, Rectangle, Rectangle, Rectangle3D, Triangle

public interface CenterLocatable
extends Locatable

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 cse115.graphics.Locatable
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