graphics
Interface IRotatable

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 IRotatable

The interface that defines the capabilties for an object that can have its rotation accessed/mutated, Should start with rotation of 0 = normal.

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

Method Summary
 Integer getRotation()
          Gets the current rotation of this Object in degrees.
 void rotate(Integer degreesToRotate)
          Rotates clockwise the Object by the specified number of degrees
 void setRotation(Integer degree)
          Sets the Rotation of the Object to be a certain degree.
 

Method Detail

rotate

void rotate(Integer degreesToRotate)
Rotates clockwise the Object by the specified number of degrees

Parameters:
degreesToRotate - rotates the Object by this many degrees

setRotation

void setRotation(Integer degree)
Sets the Rotation of the Object to be a certain degree.

Parameters:
degree - the number of degrees at which to have the Object rotated

getRotation

Integer getRotation()
Gets the current rotation of this Object in degrees.

Returns:
An Integer (between 0 and 359) representing the current angle of rotation