|
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.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.xj3d.ui.swt.browser.ogl.BrowserComposite
public abstract class BrowserComposite
Common SWT implementation of the browser component for use in either SAI or EAI, that wraps the functionality of an X3D browser into a convenient, easy to use form.
This base class needs to be extended to provide the SAI or EAI-specific implementation interfaces, as well as any startup required for either of those environments, such as scripting engines etc.
| Field Summary | |
|---|---|
protected OGLStandardBrowserCore |
browserCore
The internal browser core |
protected CursorManager |
cursorManager
The manager of cursors |
protected LocationToolbar |
locToolbar
The toolbar holding location information |
protected OGLBrowserCanvas |
mainCanvas
The canvas used to display the world |
protected MessageBuffer |
messageBuffer
Area to push error messages to |
protected NavigationToolbar |
navToolbar
The toolbar holding navigation information |
protected StatusBar |
statusBar
The status bar |
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
protected |
BrowserComposite(org.eclipse.swt.widgets.Composite parentComposite,
org.eclipse.ui.part.ViewPart viewPart,
BrowserConfig parameters)
Create an instance of a Composite configured per the arguments. |
| Method Summary | |
|---|---|
void |
browserDisposed()
The browser has been disposed by the user calling the dispose method on the ExternalBrowser instance. |
void |
browserInitialized(VRMLScene scene)
Ignored. |
void |
browserShutdown()
Ignored. |
void |
destroy()
Called to instruct the component instance to destroy itself and any used resources. |
BrowserCore |
getBrowserCore()
Get the core browser implementation. |
java.lang.Object |
getCanvas()
Get the SWT component holding this browser. |
boolean |
getElumensMode()
Is Elumens mode enabled? |
ErrorReporter |
getErrorReporter()
Fetch the error handler so that application code can post messages too. |
int |
getRendererType()
Get the renderer type. |
void |
keyPressed(org.eclipse.swt.events.KeyEvent ke)
Notification that a key is pressed. |
void |
keyReleased(org.eclipse.swt.events.KeyEvent ke)
Notification that a key is released. |
void |
partActivated(org.eclipse.ui.IWorkbenchPartReference partRef)
Ignored. |
void |
partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
Ignored. |
void |
partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
Ignored. |
void |
partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
Ignored. |
void |
partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
Notification that the referenced part was hidden. |
void |
partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
Ignored. |
void |
partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
Ignored. |
void |
partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
Notification that the referenced part was made visible. |
void |
setElumensMode(boolean enabled)
Enable elumens mode. |
void |
setLayout(org.eclipse.swt.widgets.Layout layout)
Do nothing, we do our own layout |
void |
setMinimumFrameInterval(int millis,
boolean userSet)
Set the minimum frame interval time to limit the CPU resources taken up by the 3D renderer. |
void |
shellActivated(org.eclipse.swt.events.ShellEvent evt)
Ignored. |
void |
shellClosed(org.eclipse.swt.events.ShellEvent evt)
Ignored. |
void |
shellDeactivated(org.eclipse.swt.events.ShellEvent evt)
Ignored. |
void |
shellDeiconified(org.eclipse.swt.events.ShellEvent evt)
The shell has changed from a minimized to a normal state. |
void |
shellIconified(org.eclipse.swt.events.ShellEvent evt)
The shell has changed from a normal state to minimized. |
void |
start()
Called to instruct the component instance to start rendering now. |
void |
stop()
Called to instruct the component instance to stop and suspend its state. |
int |
supportedSpecificationVersion()
Get the spec version that is supported. |
void |
urlLoadFailed(java.lang.String msg)
Ignored. |
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent evt)
Notification we're being disposed of. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected CursorManager cursorManager
protected NavigationToolbar navToolbar
protected LocationToolbar locToolbar
protected StatusBar statusBar
protected MessageBuffer messageBuffer
protected OGLBrowserCanvas mainCanvas
protected OGLStandardBrowserCore browserCore
| Constructor Detail |
|---|
protected BrowserComposite(org.eclipse.swt.widgets.Composite parentComposite,
org.eclipse.ui.part.ViewPart viewPart,
BrowserConfig parameters)
parentComposite - the SWT Composite widget that this will be added toviewPart - The Eclipse ViewPart that this browser is associated with.
May be null if the browser is running standalone in SWT.parameters - The object containing the browser's configuration parameters| Method Detail |
|---|
public void setLayout(org.eclipse.swt.widgets.Layout layout)
setLayout in class org.eclipse.swt.widgets.Compositepublic void keyPressed(org.eclipse.swt.events.KeyEvent ke)
keyPressed in interface org.eclipse.swt.events.KeyListenerke - The event that caused this method to be calledpublic void keyReleased(org.eclipse.swt.events.KeyEvent ke)
keyReleased in interface org.eclipse.swt.events.KeyListenerke - The event that caused this method to be calledpublic void shellActivated(org.eclipse.swt.events.ShellEvent evt)
shellActivated in interface org.eclipse.swt.events.ShellListenerevt - The shell event that caused the method to be called.public void shellClosed(org.eclipse.swt.events.ShellEvent evt)
shellClosed in interface org.eclipse.swt.events.ShellListenerevt - The shell event that caused the method to be called.public void shellDeactivated(org.eclipse.swt.events.ShellEvent evt)
shellDeactivated in interface org.eclipse.swt.events.ShellListenerevt - The shell event that caused the method to be called.public void shellDeiconified(org.eclipse.swt.events.ShellEvent evt)
shellDeiconified in interface org.eclipse.swt.events.ShellListenerevt - The shell event that caused the method to be called.public void shellIconified(org.eclipse.swt.events.ShellEvent evt)
shellIconified in interface org.eclipse.swt.events.ShellListenerevt - The window event that caused the method to be called.public void widgetDisposed(org.eclipse.swt.events.DisposeEvent evt)
widgetDisposed in interface org.eclipse.swt.events.DisposeListenerpublic int supportedSpecificationVersion()
supportedSpecificationVersion in interface BrowserComponentpublic java.lang.Object getCanvas()
getCanvas in interface BrowserComponentpublic int getRendererType()
getRendererType in interface BrowserComponentpublic BrowserCore getBrowserCore()
getBrowserCore in interface BrowserComponentpublic ErrorReporter getErrorReporter()
getErrorReporter in interface BrowserComponent
public void setMinimumFrameInterval(int millis,
boolean userSet)
setMinimumFrameInterval in interface BrowserComponentmillis - The minimum time in milleseconds.userSet - true if this is an end-user set minimumpublic void start()
start in interface BrowserComponentpublic void stop()
stop in interface BrowserComponentpublic void destroy()
destroy in interface BrowserComponentpublic 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 to go with the failurepublic void browserInitialized(VRMLScene scene)
browserInitialized in interface BrowserCoreListenerscene - The new scene that has been loadedpublic void partActivated(org.eclipse.ui.IWorkbenchPartReference partRef)
partActivated in interface org.eclipse.ui.IPartListener2partRef - Reference object for the part that was activated.public void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
partBroughtToTop in interface org.eclipse.ui.IPartListener2partRef - Reference object for the part that was brought to the top.public void partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
partClosed in interface org.eclipse.ui.IPartListener2partRef - Reference object for the part that was closed.public void partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
partDeactivated in interface org.eclipse.ui.IPartListener2partRef - Reference object for the part that was deactivated.public void partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
partHidden in interface org.eclipse.ui.IPartListener2partRef - Reference object for the part that was hidden.public void partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
partInputChanged in interface org.eclipse.ui.IPartListener2partRef - Reference object for the part that was hidden.public void partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
partOpened in interface org.eclipse.ui.IPartListener2partRef - Reference object for the part that was hidden.public void partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
partVisible in interface org.eclipse.ui.IPartListener2partRef - Reference object for the part that was made visible.public void setElumensMode(boolean enabled)
enabled - Whether the mode is enabled.public boolean getElumensMode()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||