public class TimeNowThread extends Thread
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
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TimeNowThread(AbstractGanttChart gc)
Constructs a new thread.
|
TimeNowThread(AbstractGanttChart gc,
long delay)
Constructs a new thread.
|
Modifier and Type | Method and Description |
---|---|
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.
|
activeCount, checkAccess, clone, 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
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 threadpublic long getDelay()
public void setDelay(long millis)
millis
- the delay in millisecondspublic void stopThread()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.