|
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.awt.browser.ogl.X3DNRBrowserFactoryImpl
public class X3DNRBrowserFactoryImpl
Factory implementation for X3D SAI which will produce components using the Null renderer. Component Creation
This implementation allows you to create a new component that is ready to place content in. Parameters can be supplied in the Map as defined by the SAI. The first column is the parameter name string, the second is the type of data, and the third is an explanation.
| Constructor Summary | |
|---|---|
X3DNRBrowserFactoryImpl()
Create a new instance of this factory. |
|
| Method Summary | |
|---|---|
X3DComponent |
createComponent(java.util.Map params)
Create a VRML browser that can be used as an AWT component. |
ExternalBrowser |
getBrowser()
Get a browser reference from this component that represents the internals of this browser. |
ExternalBrowser |
getBrowser(java.applet.Applet applet)
Get a browser from the given java applet reference as a base in the current HTML page. |
ExternalBrowser |
getBrowser(java.applet.Applet applet,
java.lang.String frameName,
int index)
Get a browser from the given java applet reference one some named page and at some embbed location. |
ExternalBrowser |
getBrowser(java.net.InetAddress address,
int port)
Get a reference to a browser that is located on a remote machine. |
java.lang.Object |
getImplementation()
Get a reference to the component implementation. |
VRMLScene |
getScene()
Get the scene object being rendered by this panel. |
OGLStandardBrowserCore |
getUniverse()
Get the universe underlying this panel. |
void |
loadURL(InputSource src)
Change the panels content to the provided URL. |
void |
loadURL(java.lang.String url)
Change the panels content to the provided URL. |
void |
shutdown()
Shutdown the component because it will no longer be needed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public X3DNRBrowserFactoryImpl()
| Method Detail |
|---|
public X3DComponent createComponent(java.util.Map params)
throws NotSupportedException
BrowserFactoryImpl
createComponent in interface BrowserFactoryImplparams - Parameters to control the look and feel.
NotSupportedException - The implementation does not support this
type of browser.BrowserFactoryImpl.createComponent(java.util.Map)
public ExternalBrowser getBrowser(java.applet.Applet applet)
throws NotSupportedException,
NoSuchBrowserException,
ConnectionException
BrowserFactoryImpl
getBrowser in interface BrowserFactoryImplapplet - The applet reference to use
NotSupportedException - The implementation does not support this
type of VRML browser
NoSuchBrowserException - Could not locate a VRML browser on the
same page as the applet.
ConnectionException - An error occurred during the connecting
processBrowserFactoryImpl.getBrowser(java.applet.Applet)
public ExternalBrowser getBrowser(java.applet.Applet applet,
java.lang.String frameName,
int index)
throws NotSupportedException,
NoSuchBrowserException,
ConnectionException
BrowserFactoryImplIf the frame name is a zero length string or null then it is assumed to be located on the same HTML page as the applet. The index is the number of the embbed VRML browser starting from the top of the page. If there are other non-VRML plugins embedded in the page these are not taken into account in calculating the embed index.
getBrowser in interface BrowserFactoryImplapplet - The applet reference to useframeName - The name of the frame to look into for the browserindex - The embed index of the VRML browser in the page
NotSupportedException - The implementation does not support this
type of VRML browser.
NoSuchBrowserException - Could not locate a VRML browser on the
same page as the applet.
ConnectionException - An error occurred during the connecting
processBrowserFactoryImpl.getBrowser(java.applet.Applet,
java.lang.String, int)
public ExternalBrowser getBrowser(java.net.InetAddress address,
int port)
throws NotSupportedException,
NoSuchBrowserException,
java.net.UnknownHostException,
ConnectionException
BrowserFactoryImplThere is no default port number for VRML browsers.
getBrowser in interface BrowserFactoryImpladdress - The address of the machine to connect toport - The port number on that machine to connect to.
NotSupportedException - The implementation does not support this
type of VRML browser.
NoSuchBrowserException - Could not locate a VRML browser on the
same page as the applet.
java.net.UnknownHostException - Could not find the machine named in the
address.
ConnectionException - An error occurred during the connecting
processBrowserFactoryImpl.getBrowser(java.net.InetAddress,
int)public ExternalBrowser getBrowser()
X3DComponent
getBrowser in interface X3DComponentX3DComponent.getBrowser()public java.lang.Object getImplementation()
X3DComponentComponent.
getImplementation in interface X3DComponentX3DComponent.getImplementation()public void shutdown()
X3DComponent
shutdown in interface X3DComponentX3DComponent.shutdown()public VRMLScene getScene()
public OGLStandardBrowserCore getUniverse()
public void loadURL(java.lang.String url)
throws java.io.IOException
url - The URL to load.
java.io.IOException - On a failed load or badly formatted URL
public void loadURL(InputSource src)
throws java.io.IOException
src - the source to load the content from
java.io.IOException - On a failed load or badly formatted URL
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||