graphics
Interface IRotatable

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

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
 java.lang.Integer getRotation()
          Gets the current rotation of this Object in degrees.
 void rotate(java.lang.Integer degreesToRotate)
          Rotates clockwise the Object by the specified number of degrees
 void setRotation(java.lang.Integer degree)
          Sets the Rotation of the Object to be a certain degree.
 

Method Detail

rotate

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

Parameters:
degreesToRotate - rotates the Object by this many degrees

setRotation

void setRotation(java.lang.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

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

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