wheelsunh.users
Class AnimationTimer

java.lang.Object
  extended by javax.swing.Timer
      extended by wheelsunh.users.AnimationTimer
All Implemented Interfaces:
java.io.Serializable

public class AnimationTimer
extends javax.swing.Timer

AnimationTimer.java. A subclass of Timer that can be used for animation. It also serves as an example of an "event source" object.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.Timer
listenerList
 
Constructor Summary
AnimationTimer(int anInterval, Animator a)
          Constructor.
 
Method Summary
 
Methods inherited from class javax.swing.Timer
addActionListener, fireActionPerformed, getActionCommand, getActionListeners, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setActionCommand, 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

AnimationTimer

public AnimationTimer(int anInterval,
                      Animator a)
Constructor.

Parameters:
anInterval - int How many ms between events
a - Animator Who to send the events to