Class SwingTimer
- java.lang.Object
- 
- com.inductiveautomation.snap.swing.SwingTimer
 
- 
 public class SwingTimer extends java.lang.ObjectA UITimer for Swing and SwingOwner.
- 
- 
Constructor SummaryConstructors Constructor Description SwingTimer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()Returns the number of times the timer has fired.java.lang.StringgetName()Returns the name.SwingOwnergetOwner()Returns the owner.intgetPeriod()Returns the time in milliseconds between firings.longgetTime()Returns the number of milliseconds timer has been active since start.protected voidincrementSendCount()Increments the send count.SwingTimerinit(SwingOwner anOwner, java.lang.String aName, int aPeriod)Creates a new timer for name and period.booleanisRunning()Returns whether timer is running.protected voidsendEvent()Sends the event.protected voidsendEventInUIThread()Sends the event in UI Thread.voidsetPeriod(int aPeriod)Sets the time in milliseconds between firings.voidstart()Start timer.voidstart(long aDelay)Start timer.voidstop()Stop timer.
 
- 
- 
- 
Method Detail- 
initpublic SwingTimer init(SwingOwner anOwner, java.lang.String aName, int aPeriod) Creates a new timer for name and period.
 - 
getOwnerpublic SwingOwner getOwner() Returns the owner.
 - 
getNamepublic java.lang.String getName() Returns the name.
 - 
getPeriodpublic int getPeriod() Returns the time in milliseconds between firings.
 - 
setPeriodpublic void setPeriod(int aPeriod) Sets the time in milliseconds between firings.
 - 
isRunningpublic boolean isRunning() Returns whether timer is running.
 - 
getTimepublic long getTime() Returns the number of milliseconds timer has been active since start.
 - 
getCountpublic int getCount() Returns the number of times the timer has fired.
 - 
startpublic void start() Start timer.
 - 
startpublic void start(long aDelay) Start timer.
 - 
stoppublic void stop() Stop timer.
 - 
sendEventInUIThreadprotected void sendEventInUIThread() Sends the event in UI Thread.
 - 
sendEventprotected void sendEvent() Sends the event.
 - 
incrementSendCountprotected void incrementSendCount() Increments the send count.
 
- 
 
-