public class Timer extends SoSystemTimer
This implementation can be used in an AWT or SWING application.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
Timer() |
Modifier and Type | Method and Description |
---|---|
boolean |
isPending()
Return true if the timer is running.
|
void |
setDelay(int time)
Set the timer's timeout in milliseconds.
|
void |
setRepeat(boolean flag)
If set to true, the timer will be triggered periodically at the rate defined by setDelay.
|
void |
setTask(SoSystemTimerTask task)
Sets the task executed when the timer is triggered.
|
void |
start()
Start the timer.
|
void |
stop()
Stop the timer.
|
dispose, isDisposable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public void start()
SoSystemTimer
start
in class SoSystemTimer
public void stop()
SoSystemTimer
stop
in class SoSystemTimer
public void setDelay(int time)
SoSystemTimer
setDelay
in class SoSystemTimer
public boolean isPending()
SoSystemTimer
isPending
in class SoSystemTimer
public void setRepeat(boolean flag)
SoSystemTimer
setRepeat
in class SoSystemTimer
public void setTask(SoSystemTimerTask task)
SoSystemTimer
setTask
in class SoSystemTimer
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com