|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread com.dlsc.flexgantt.swing.timeline.TimeNowThread
public class TimeNowThread
A thread that is specialized on updating the time now variable inside
the Eventline
. This variable is used to express which time point
will be considered to be the current time by the Gantt chart.
Eventline.setTimeNow(long)
,
TimeNowLayer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
TimeNowThread(AbstractGanttChart gc)
Constructs a new thread. |
|
TimeNowThread(AbstractGanttChart gc,
long delay)
Constructs a new thread. |
Method Summary | |
---|---|
long |
getDelay()
Returns the number of milliseconds to pause between two successive calls to the eventline. |
void |
run()
|
void |
setDelay(long millis)
Sets the number of milliseconds to pause between two successive calls to the eventline. |
void |
stopThread()
Stops the thread. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeNowThread(AbstractGanttChart gc, long delay)
gc
- the Gantt chart to which the eventline belongs that will be
updated by the threaddelay
- the number of milliseconds to pause before successive update
callspublic TimeNowThread(AbstractGanttChart gc)
gc
- the Gantt chart to which the eventline belongs that will be
updated by the threadMethod Detail |
---|
public long getDelay()
public void setDelay(long millis)
millis
- the delay in millisecondspublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void stopThread()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |