|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xj3d.ui.construct.ogl.ShutdownManager
public class ShutdownManager
A function module that performs a controlled and complete shutdown of the browser constructs internals when either the browser or the application are exiting.
| Field Summary | |
|---|---|
protected OGLConstruct |
construct
The construct instance |
protected java.lang.Thread |
shutdownThread
Thread used to handle the system shutdown hook |
| Constructor Summary | |
|---|---|
ShutdownManager(OGLConstruct construct)
Constructor |
|
| Method Summary | |
|---|---|
void |
browserDisposed()
The browser core has been disposed, all resources may be freed. |
void |
browserInitialized(VRMLScene scene)
Ignored. |
void |
browserShutdown()
Ignored. |
void |
run()
The shutdown thread |
protected void |
shutdown(boolean isShutdownThread)
Do an orderly shutdown of the browser's resource managers |
void |
urlLoadFailed(java.lang.String msg)
Ignored. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OGLConstruct construct
protected java.lang.Thread shutdownThread
| Constructor Detail |
|---|
public ShutdownManager(OGLConstruct construct)
construct - The OGLConstruct instance to manage| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void browserShutdown()
browserShutdown in interface BrowserCoreListenerpublic void browserDisposed()
browserDisposed in interface BrowserCoreListenerpublic void urlLoadFailed(java.lang.String msg)
urlLoadFailed in interface BrowserCoreListenermsg - An error message describing the failurepublic void browserInitialized(VRMLScene scene)
browserInitialized in interface BrowserCoreListenerscene - The new scene that has been loadedprotected void shutdown(boolean isShutdownThread)
isShutdownThread - Is this method being called from the
Runtime shutdown hook.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||