In SWT, the Display provide several methods ,for example:
timerExec (int milliseconds, Runnable runnable)
syncExec (Runnable runnable)
asyncExec (Runnable runnable)
You need to write one Runnable and draw you curves in the SWT Canvas in the run() method.
If use the first method, you only need to set the value of ‘ milliseconds’, it will repaint the Canvas in timer.
The last two methods, you can use ScheduledExecutorService to excute the Runable in timer,
the methods is scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit);
You may find some swt sinnepts in the following link
SWT Snippets
http://dev.eclipse.org/viewcvs/index...Snippet16.java