public class SwingTimer
extends java.lang.Object
Constructor and Description |
---|
SwingTimer() |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the number of times the timer has fired.
|
java.lang.String |
getName()
Returns the name.
|
SwingOwner |
getOwner()
Returns the owner.
|
int |
getPeriod()
Returns the time in milliseconds between firings.
|
long |
getTime()
Returns the number of milliseconds timer has been active since start.
|
protected void |
incrementSendCount()
Increments the send count.
|
SwingTimer |
init(SwingOwner anOwner,
java.lang.String aName,
int aPeriod)
Creates a new timer for name and period.
|
boolean |
isRunning()
Returns whether timer is running.
|
protected void |
sendEvent()
Sends the event.
|
protected void |
sendEventInUIThread()
Sends the event in UI Thread.
|
void |
setPeriod(int aPeriod)
Sets the time in milliseconds between firings.
|
void |
start()
Start timer.
|
void |
start(long aDelay)
Start timer.
|
void |
stop()
Stop timer.
|
public SwingTimer init(SwingOwner anOwner, java.lang.String aName, int aPeriod)
public SwingOwner getOwner()
public java.lang.String getName()
public int getPeriod()
public void setPeriod(int aPeriod)
public boolean isRunning()
public long getTime()
public int getCount()
public void start()
public void start(long aDelay)
public void stop()
protected void sendEventInUIThread()
protected void sendEvent()
protected void incrementSendCount()