|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.visual.ui.RedrawTask
public class RedrawTask
Method Summary | |
---|---|
String |
getTitle()
Gets a Human Readable Title of this Task. |
void |
halt()
halt() is a non-blocking request to halt the task, and
is called by an external entity. |
void |
run()
run() executes the task, and is called by an
external entity. |
void |
setTaskMonitor(TaskMonitor taskMonitor)
Lets this Task know who it should report to regarding
task progress, errors, status description, etc. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void run()
Task
run()
executes the task, and is called by an
external entity.
Task process computations should be executed in this method, by the same thread that calls this method.
run()
shall only be called once for a given instance.
If an asynchronous call to halt()
is made while
run()
is executing, run()
should make an effort
to abort its operations and exit as soon as it is safe to do so.
run
in interface Task
run
in interface Runnable
public void halt()
Task
halt()
is a non-blocking request to halt the task, and
is called by an external entity.
halt()
should not block; it should return quickly.
If [an asynchronous] thread is executing run()
when
halt()
is called, a signal should be sent to the thread
that is executing run()
to abort and exit
run()
.
halt()
may return long before run()
exits;
run()
will only return when it is safe to do so.
If run()
has not been called at the time that
halt()
is invoked, a later call to run()
should not actually "run" anything.
If run()
has already been run and has exited by the time
halt()
is called, halt()
should do nothing.
There is no guarantee that halt()
will be called on
an instance of this class.
halt
in interface Haltable
halt
in interface Task
public void setTaskMonitor(TaskMonitor taskMonitor) throws IllegalThreadStateException
Task
Task
know who it should report to regarding
task progress, errors, status description, etc. monitor
may
be null
, in which case the task will stop reporting.
This method must be called exactly once, and before run()
is invoked.
If this method is called more than once, the method may throw an
IllegalStateException
.
If this method is not called before run()
then
run()
may throw an IllegalStateException
.
TaskMonitor
methods can only be be called from the thread
that invokes run()
.
setTaskMonitor
in interface Task
taskMonitor
- TaskMonitor Object.
IllegalThreadStateException
- Indicates that the TaskMonitor has
already been set.public String getTitle()
Task
getTitle
in interface Task
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |