visad
Class DisplayActivity
- java.lang.Object
-
- visad.DisplayActivity
-
public class DisplayActivity extends java.lang.ObjectManage busy/idle handlers for a Display
-
-
Constructor Summary
Constructors Constructor and Description DisplayActivity(DisplayImpl dpy)Manage busy/idle handlers for a Display, using a default idle time of 0.25 second.DisplayActivity(DisplayImpl dpy, int milliseconds)Manage busy/idle handlers for a Display, using the specified idle time, with the minimum idle time being 100 milliseconds.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddHandler(ActivityHandler ah)Add a new activity handler.voiddestroy()Stop the idle timer and any running tasks.voidremoveHandler(ActivityHandler ah)Remove an activity handler.voidupdateBusyStatus()Notify the activity monitor that work has been done.
-
-
-
Constructor Detail
-
DisplayActivity
public DisplayActivity(DisplayImpl dpy)
Manage busy/idle handlers for a Display, using a default idle time of 0.25 second.- Parameters:
dpy- Display to manage.
-
DisplayActivity
public DisplayActivity(DisplayImpl dpy, int milliseconds)
Manage busy/idle handlers for a Display, using the specified idle time, with the minimum idle time being 100 milliseconds.- Parameters:
dpy- Display to manage.milliseconds- Number of milliseconds to wait before the Display is considered idle.
-
-
Method Detail
-
destroy
public void destroy()
Stop the idle timer and any running tasks.
-
addHandler
public void addHandler(ActivityHandler ah) throws VisADException
Add a new activity handler.- Parameters:
ah- ActivityHandler to add- Throws:
VisADException- no handler list
-
removeHandler
public void removeHandler(ActivityHandler ah) throws VisADException
Remove an activity handler.- Parameters:
ah- ActivityHandler to remove- Throws:
VisADException- no handler list
-
updateBusyStatus
public void updateBusyStatus()
Notify the activity monitor that work has been done.
-
-
DMelt 3.0 © DataMelt by jWork.ORG