cs015.SketchySupport
Interface SketchyShape

All Superinterfaces:
Rotatable, Sizeable

public interface SketchyShape
extends Rotatable, Sizeable

For a shape to be able to be manipulated by the BoundingBox, it must implement this interface.

Author:
Brent Shields

Method Summary
 java.awt.Point getCenterLocation()
          Gets the current location of the center of the shape
 void setCenterLocation(java.awt.Point p)
          Sets the current location of the center of the shape to the passed in value
 
Methods inherited from interface NGP.Rotatable
getRotation, setRotation
 
Methods inherited from interface NGP.Sizeable
getDimension, setDimension
 

Method Detail

setCenterLocation

public void setCenterLocation(java.awt.Point p)
Sets the current location of the center of the shape to the passed in value

Parameters:
p - the java.awt.Point that is the new location of the shape

getCenterLocation

public java.awt.Point getCenterLocation()
Gets the current location of the center of the shape

Returns:
the java.awt.Point which represents the current location of the shape