lab7lib
Class Degree

java.lang.Object
  extended by lab7lib.Degree

public class Degree
extends java.lang.Object

A class to model a degree (for rotation of a shape).

Author:
Adrienne M Decker Created on: Mar 1, 2008

Constructor Summary
Degree()
          Creates a new instance of Degree
 
Method Summary
 java.lang.Integer getInteger()
          Returns an Integer that represents this degree.
 Degree turn()
          Changes the current degree by a set amount (2) each time.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Degree

public Degree()
Creates a new instance of Degree

Method Detail

getInteger

public java.lang.Integer getInteger()
Returns an Integer that represents this degree.

Returns:
The degree.

turn

public Degree turn()
Changes the current degree by a set amount (2) each time.

Returns:
The new degree.