physics
Class MotionTimer

java.lang.Object
  extended by javax.swing.Timer
      extended by cse115.utilities.Timer
          extended by physics.MotionTimer
All Implemented Interfaces:
Serializable

public class MotionTimer
extends Timer

MotionTimer.java Created: Sat Sep 18 19:48:45 2004

Version:
An extension of Timer tat interacts with an IMotion
Author:
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.Timer
listenerList
 
Constructor Summary
MotionTimer(int delay, IMotion im)
          Creates a new MotionTimer instance.
 
Method Summary
 void activate()
          Calls the motions TimerReact whenever the set time has expired
 
Methods inherited from class javax.swing.Timer
addActionListener, fireActionPerformed, getActionListeners, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MotionTimer

public MotionTimer(int delay,
                   IMotion im)
Creates a new MotionTimer instance.

Parameters:
delay - an int value
im - an IMotion value
Method Detail

activate

public void activate()
Calls the motions TimerReact whenever the set time has expired

Overrides:
activate in class Timer