|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.j3d.browser.J3DBrowserFactoryImpl
An implementation of the EAI BrowserFactoryImpl interface
that creates a browser that uses Java3D for the renderer.
Supported Actions
Currently the factory implementation only supports creating a new component. We do expect to add other support at a later date, such as fetching an existing instance.
Component Creation
This implementation allows you to create a new component that is ready to place content in. Parameters can be supplied and are declared in the form
param name=param valueThere should be no whitespace either side of the equals sign.
When creating a new browser component, the following parameters are supported:
xj3d.browser.ui.type |
awt|swing. Indication as to whether the UI
should be AWT or SWING based. If not supplied the default is to use
SWING. |
xj3d.browser.ui.navbar.shown |
true|false. Show or hide the navigation
bar on the screen. If not provided, the navigation bar will be shown.
|
xj3d.browser.ui.navbar.position |
top|bottom. If the navigation bar is shown,
it should be placed at the desired location in the panel. If not
provided, the navigation bar will be on the bottom. |
xj3d.browser.ui.urlbar.shown |
true|false. Show or hide the panel that
describes the current URL and allows the user to enter new URLs.
If not provided, the location bar will be shown. |
xj3d.browser.ui.urlbar.position |
top|bottom. If the URL bar is shown,
it should be placed at the desired location in the panel. If not
provided, the position will be at the top of the panel. |
xj3d.browser.ui.urlbar.readonly |
true|false. If the URL bar is shown,
you can make it read-only (ie not allow the user to change the URL).
If not provided, the bar will be writable.
|
xj3d.browser.ui.console |
show|hide. Indication as to whether the
component should automatically show the console on startup. Default
is to hide.
|
| Constructor Summary | |
J3DBrowserFactoryImpl()
Create a new instance of this factory. |
|
| Method Summary | |
VrmlComponent |
createComponent(java.lang.String[] params)
Create a VRML browser that can be used as an AWT component. |
Browser |
getBrowser(java.applet.Applet applet)
Get a browser from the given java applet reference as a base in the current HTML page. |
Browser |
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. |
Browser |
getBrowser(java.net.InetAddress address,
int port)
Get a reference to a browser that is located on a remote machine. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public J3DBrowserFactoryImpl()
| Method Detail |
public VrmlComponent createComponent(java.lang.String[] params)
throws NotSupportedException
createComponent in interface BrowserFactoryImplparams - Parameters to control the look and feel.
NotSupportedException - The implementation does not support this
type of VRML browser.VrmlComponent
public Browser getBrowser(java.applet.Applet applet)
throws NotSupportedException,
NoSuchBrowserException,
ConnectionException
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
process
public Browser getBrowser(java.applet.Applet applet,
java.lang.String frameName,
int index)
throws NotSupportedException,
NoSuchBrowserException,
ConnectionException
If 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
process
public Browser getBrowser(java.net.InetAddress address,
int port)
throws NotSupportedException,
NoSuchBrowserException,
java.net.UnknownHostException,
ConnectionException
There 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
process
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||