physics
Class MotionTimer
java.lang.Object
javax.swing.Timer
cse115.utilities.Timer
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
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 |
MotionTimer
public MotionTimer(int delay,
IMotion im)
- Creates a new
MotionTimer
instance.
- Parameters:
delay
- an int
valueim
- an IMotion
value
activate
public void activate()
- Calls the motions TimerReact whenever the set time has expired
- Overrides:
activate
in class Timer