physics
Class MotionTimer
java.lang.Object
javax.swing.Timer
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, getActionListeners, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats, start, stop |
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
- Specified by:
activate in class Timer