TMThreadModel

Kind of class:(package private) abstract class
Package:treemap
Inherits from:none
Known subclasses:
Version:2.5
Author:Christophe Bouthier [bouthier@loria.fr]
Package classpath:treemap.TMThreadModel
File last modified:Friday, 28 December 2001, 19:13:54
The TMThreadModel abstract class implements a thread of the TMNodeModelRoot.
Such a thread is launched to update the TMNodeModel (size, drawing, childs)
or to redraw the drawing buffer of the TMView.
IT should be executed by a TMThreadQueue.

Summary


Constructors
Instance fields
Instance methods
  • run
    • Runs the task and the guiTask.
  • guiTask
    • Task to be executed in the gui thread, once task has finished.
  • task
    • Task to be executed in a separated thread.

Constructors

TMThreadModel

(package private) TMThreadModel(
TMStatusView status, TMNodeModelRoot model, TMView view)

Constructor.
Parameters:
status:
the status view for feedback
model :
the model for lock and clearing caches
view :
the view to update

Instance fields

model

protected TMNodeModelRoot model = null

status

protected TMStatusView status = null

view

protected TMView view = null

Instance methods

guiTask

(package private) void guiTask(
)

Task to be executed in the gui thread, once task has finished.

run

(package private) void run(
)

Runs the task and the guiTask.

task

(package private) abstract void task(
)

Task to be executed in a separated thread.