wheels
Interface Rotatable

All Known Implementing Classes:
Shape

public interface Rotatable

Interface for objects that can have their rotation set and queried.

Author:
Sanders & van Dam. Object-Oriented Programming in Java.

Method Summary
 int getRotation()
          Returns the object's rotation in degrees.
 void setRotation(int degrees)
          Sets the object's rotation in degrees.
 

Method Detail

setRotation

public void setRotation(int degrees)
Sets the object's rotation in degrees.


getRotation

public int getRotation()
Returns the object's rotation in degrees.