Class NetworkBrowserClient
java.lang.Object
org.web3d.vrml.scripting.external.neteai.NetworkBrowserClient
- All Implemented Interfaces:
NetworkStartupListener,Browser
NetworkBrowserClient communicates over the network to a NetworkBrowserServer.
-
Method Summary
Modifier and TypeMethodDescriptionvoid* @see vrml.eai.Browser#addBrowserListener(vrml.eai.event.BrowserListener)void* @see vrml.eai.Browser#addRoute(vrml.eai.Node, java.lang.String, vrml.eai.Node, java.lang.String)void* @see vrml.eai.Browser#beginUpdate()Node[]createVrmlFromString(String vrmlString) * @see vrml.eai.Browser#createVrmlFromString(java.lang.String)voidcreateVrmlFromURL(String[] url, Node node, String eventIn) * @see vrml.eai.Browser#createVrmlFromURL(java.lang.String[], vrml.eai.Node, java.lang.String)voiddeleteRoute(Node fromNode, String eventOut, Node toNode, String eventIn) * @see vrml.eai.Browser#deleteRoute(vrml.eai.Node, java.lang.String, vrml.eai.Node, java.lang.String)voiddispose()* @see vrml.eai.Browser#dispose()void* @see vrml.eai.Browser#endUpdate()float* @see vrml.eai.Browser#getCurrentFrameRate()float* @see vrml.eai.Browser#getCurrentSpeed()getName()* @see vrml.eai.Browser#getName()* @see vrml.eai.Browser#getNode(java.lang.String)* @see vrml.eai.Browser#getVersion()* @see vrml.eai.Browser#getWorldURL()void* @see vrml.eai.Browser#loadURL(java.lang.String[], java.lang.String[])void* @see org.web3d.vrml.scripting.external.neteai.NetworkStartupListener#notifyNetworkInitializationComplete()void* @see vrml.eai.Browser#removeBrowserListener(vrml.eai.event.BrowserListener)voidreplaceWorld(Node[] nodes) * @see vrml.eai.Browser#replaceWorld(vrml.eai.Node[])voidsetDescription(String desc) * @see vrml.eai.Browser#setDescription(java.lang.String)
-
Method Details
-
getName
* @see vrml.eai.Browser#getName()- Specified by:
getNamein interfaceBrowser- Returns:
- The name of the browser or null if not supported
- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
getVersion
* @see vrml.eai.Browser#getVersion()- Specified by:
getVersionin interfaceBrowser- Returns:
- The version of the browser or null if not supported
- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
getCurrentSpeed
* @see vrml.eai.Browser#getCurrentSpeed()- Specified by:
getCurrentSpeedin interfaceBrowser- Returns:
- The velocity in m/s or 0.0 if not supported
- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
getCurrentFrameRate
* @see vrml.eai.Browser#getCurrentFrameRate()- Specified by:
getCurrentFrameRatein interfaceBrowser- Returns:
- The current frame rate or 0.0 if not supported
- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
getWorldURL
* @see vrml.eai.Browser#getWorldURL()- Specified by:
getWorldURLin interfaceBrowser- Returns:
- A string of the URL or null if not supported.
- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.URLUnavailableException- The URL is not available because a world has not been loaded- See Also:
-
replaceWorld
* @see vrml.eai.Browser#replaceWorld(vrml.eai.Node[])- Specified by:
replaceWorldin interfaceBrowser- Parameters:
nodes- The list of nodes to use as the new root of the world- Throws:
IllegalArgumentException- if the nodes are not valid VRML nodesInvalidBrowserException- The dispose method has been called on this browser reference.
-
loadURL
public void loadURL(String[] url, String[] parameter) throws InvalidBrowserException, InvalidURLException * @see vrml.eai.Browser#loadURL(java.lang.String[], java.lang.String[])- Specified by:
loadURLin interfaceBrowser- Parameters:
url- The list of URLs in decreasing order of preference as defined in the VRML97 specification.parameter- The list of parameters to accompany the load call as defined in the Anchor node specification of VRML97- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.InvalidURLException- All of the URLs passed to this method are bogus and cannot be translated to usable values
-
setDescription
* @see vrml.eai.Browser#setDescription(java.lang.String)- Specified by:
setDescriptionin interfaceBrowser- Parameters:
desc- The description string to set.- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
createVrmlFromString
public Node[] createVrmlFromString(String vrmlString) throws InvalidBrowserException, InvalidVrmlException * @see vrml.eai.Browser#createVrmlFromString(java.lang.String)- Specified by:
createVrmlFromStringin interfaceBrowser- Parameters:
vrmlString- The string containing VRML string syntax- Returns:
- A list of the top level nodes in VRML representation as defined in the parameter
- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.InvalidVrmlException- If the string does not contain legal VRML syntax or no node instantiations
-
createVrmlFromURL
public void createVrmlFromURL(String[] url, Node node, String eventIn) throws InvalidBrowserException, InvalidNodeException, InvalidURLException * @see vrml.eai.Browser#createVrmlFromURL(java.lang.String[], vrml.eai.Node, java.lang.String)- Specified by:
createVrmlFromURLin interfaceBrowser- Parameters:
url- The list of URLs in decreasing order of preference as defined in the VRML97 specification.node- The destination node for the VRML code to be sent to.eventIn- The name of the MFNode eventIn to send the nodes to.- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.InvalidNodeException- The nominated destination node has been disposed ofInvalidURLException- All of the URLs passed to this method are bogus and cannot be translated to usable values
-
getNode
public Node getNode(String name) throws InvalidNodeException, InvalidBrowserException, URLUnavailableException * @see vrml.eai.Browser#getNode(java.lang.String)- Specified by:
getNodein interfaceBrowser- Parameters:
name- The name of the DEF node to retrieve- Returns:
- A reference to that node
- Throws:
InvalidNodeException- The named node does not exist or is not accessible.InvalidBrowserException- The dispose method has been called on this browser reference.URLUnavailableException- The URL is not available because a world has not been loaded
-
addRoute
public void addRoute(Node fromNode, String eventOut, Node toNode, String eventIn) throws InvalidBrowserException, InvalidEventOutException, InvalidEventInException, InvalidNodeException * @see vrml.eai.Browser#addRoute(vrml.eai.Node, java.lang.String, vrml.eai.Node, java.lang.String)- Specified by:
addRoutein interfaceBrowser- Parameters:
fromNode- The source node for the routeeventOut- The eventOut source of the routetoNode- The destination node of the routeeventIn- The eventIn destination of the route- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.InvalidEventOutException- if the named eventOut does not existInvalidEventInException- if the named eventIn does not exist.InvalidNodeException- The nominated destination or source node has been disposed of
-
deleteRoute
public void deleteRoute(Node fromNode, String eventOut, Node toNode, String eventIn) throws InvalidBrowserException, InvalidEventOutException, InvalidEventInException, InvalidNodeException * @see vrml.eai.Browser#deleteRoute(vrml.eai.Node, java.lang.String, vrml.eai.Node, java.lang.String)- Specified by:
deleteRoutein interfaceBrowser- Parameters:
fromNode- The source node for the routeeventOut- The eventOut source of the routetoNode- The destination node of the routeeventIn- The eventIn destination of the route- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.InvalidEventOutException- if the named eventOut does not existInvalidEventInException- if the named eventIn does not exist.InvalidNodeException- The nominated destination or source node has been disposed of
-
beginUpdate
* @see vrml.eai.Browser#beginUpdate()- Specified by:
beginUpdatein interfaceBrowser- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
endUpdate
* @see vrml.eai.Browser#endUpdate()- Specified by:
endUpdatein interfaceBrowser- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
addBrowserListener
* @see vrml.eai.Browser#addBrowserListener(vrml.eai.event.BrowserListener)- Specified by:
addBrowserListenerin interfaceBrowser- Parameters:
l- The listener to add.- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
removeBrowserListener
* @see vrml.eai.Browser#removeBrowserListener(vrml.eai.event.BrowserListener)- Specified by:
removeBrowserListenerin interfaceBrowser- Parameters:
l- The listener to remove- Throws:
InvalidBrowserException- The dispose method has been called on this browser reference.
-
dispose
-
notifyNetworkInitializationComplete
public void notifyNetworkInitializationComplete()* @see org.web3d.vrml.scripting.external.neteai.NetworkStartupListener#notifyNetworkInitializationComplete()- Specified by:
notifyNetworkInitializationCompletein interfaceNetworkStartupListener
-