public class DisplayActivity extends Object
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.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(ActivityHandler ah)
Add a new activity handler.
|
void |
destroy()
Stop the idle timer and any running tasks.
|
void |
removeHandler(ActivityHandler ah)
Remove an activity handler.
|
void |
updateBusyStatus()
Notify the activity monitor that work has been done.
|
public DisplayActivity(DisplayImpl dpy)
dpy
- Display to manage.public DisplayActivity(DisplayImpl dpy, int milliseconds)
dpy
- Display to manage.milliseconds
- Number of milliseconds to wait before
the Display is considered idle.public void destroy()
public void addHandler(ActivityHandler ah) throws VisADException
ah
- ActivityHandler to addVisADException
- no handler listpublic void removeHandler(ActivityHandler ah) throws VisADException
ah
- ActivityHandler to removeVisADException
- no handler listpublic void updateBusyStatus()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.