|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.Timer
utilities.Timer
public abstract class Timer
A timer object that will call a method every unit of time.
The method that is called after every delay is public void activate() and needs to be defined in a subclass.
| Constructor Summary | |
|---|---|
Timer(java.lang.Integer delay)
Creates a new instance of Timer with the given delay (in milliseconds) |
|
| Method Summary | |
|---|---|
abstract void |
activate()
When the timer is started, this method gets called repeatedly with the delay specified in the constructor. |
| Methods inherited from class javax.swing.Timer |
|---|
addActionListener, 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Timer(java.lang.Integer delay)
delay - the time to elapse in between activations of the timer. Timer
is initialized in the stopped position (must be started).| Method Detail |
|---|
public abstract void activate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||