|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExternalBrowser
Browser interface that represents the additional abilities an external application is granted to the VRML browser.
A number of the methods in this applicationcan take strings representing URLs. Relative URL strings contained in URL fields of nodes or these method arguments are interpreted as follows:
Relative URLs are treated as per clause B.3.5 of the EAI Java Bindings
| Method Summary | |
|---|---|
void |
addBrowserListener(BrowserListener l)
Add a listener for browser events. |
void |
beginUpdate()
Lock the output from the external interface to the browser as the code is about to begin a series of updates. |
void |
dispose()
Dispose the resources that are used by this instance. |
void |
endUpdate()
Release the output of events from the external interface into the VRML browser. |
void |
pauseRender()
Pause the render and event cascade evaluation system. |
void |
removeBrowserListener(BrowserListener l)
Remove a listener for browser events. |
void |
startRender()
Start the render and event cascade evaluation system again after a pause or stop. |
void |
stopRender()
Stop the render and event cascade evaluation system completely. |
| Methods inherited from interface org.web3d.x3d.sai.Browser |
|---|
createScene, createX3DFromStream, createX3DFromString, createX3DFromURL, firstViewpoint, firstViewpoint, getBrowserProperties, getComponent, getCurrentFrameRate, getCurrentSpeed, getDescription, getExecutionContext, getName, getProfile, getRenderingProperties, getSupportedComponents, getSupportedProfiles, getVersion, importDocument, lastViewpoint, lastViewpoint, loadURL, nextViewpoint, nextViewpoint, previousViewpoint, previousViewpoint, print, println, replaceWorld, setDescription |
| Method Detail |
|---|
void beginUpdate()
throws InvalidBrowserException
This call is a nesting call which means subsequent calls to beginUpdate are kept on a stack. No events will be released to the VRML browser until as many endUpdates have been called as beginUpdate.
InvalidBrowserException - The dispose method has been called on
this browser reference.
ConnectionException - An error occurred in the connection to the
browser.
void endUpdate()
throws InvalidBrowserException
This call is a nesting call which means subsequent calls to beginUpdate are kept on a stack. No events will be released to the VRML browser until as many endUpdates have been called as beginUpdate.
If no beginUpdate has been called before calling this method, it has no effect.
InvalidBrowserException - The dispose method has been called on
this browser reference.
ConnectionException - An error occurred in the connection to the
browser.
void addBrowserListener(BrowserListener l)
throws InvalidBrowserException
l - The listener to add.
java.lang.NullPointerException - If the provided listener reference is
null
InvalidBrowserException - The dispose method has been called on
this browser reference.
ConnectionException - An error occurred in the connection to the
browser.
void removeBrowserListener(BrowserListener l)
throws InvalidBrowserException
l - The listener to remove
java.lang.NullPointerException - If the provided listener reference is
null
InvalidBrowserException - The dispose method has been called on
this browser reference.
ConnectionException - An error occurred in the connection to the
browser.void dispose()
void startRender()
void pauseRender()
void stopRender()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||