| Programming with JViews Maps > Creating a Map Application Using the API > Using the GUI Beans > Multithread Monitor |
Multithread Monitor |
INDEX
PREVIOUS
NEXT
|
The Multithread Monitor Bean is represented by the IlvThreadedActivityMonitorPanel class. This Bean displays the completion status of tasks in progress.
An example of the Multithread Monitor is shown in Figure 3.20.
To include the Multithread Monitor Bean in your application, you first need to get the thread monitoring model for the manager:
IlvThreadedActivityMonitor mon = IlvThreadedActivityMonitorProperty.GetThreadedActivityMonitor(manager);
Then you can create the Bean:
IlvThreadedActivityMonitorPanel monitor = new IlvThreadedActivityMonitorPanel(mon);
You can then add this Bean to your Swing hierarchy.
panel.add(monitor, BorderLayout.SOUTH);
The Bean attaches itself to the IlvThreadedActivityMonitor of the manager. It can be updated whenever a new activity is registered or updated in this model by using lines such as:
mon.updateActivityProgress(myActivity,10,"Doing something..."); ... mon.unregisterThreadedActivity(myActivity);
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |