|
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.jface.action.ContributionItem
org.xj3d.ui.swt.view.FrameRateContributionItem
public class FrameRateContributionItem
An implementation of a contribution item for the status bar. This item consists of a label that displays the browser's current frame rate.
| Constructor Summary | |
|---|---|
FrameRateContributionItem(java.lang.String id,
BrowserCore core)
Constructor |
|
| Method Summary | |
|---|---|
void |
alarmAction(AlarmEvent ae)
Invoked when the alarm has expired. |
void |
browserDisposed()
The browser has been disposed, all resources may be freed. |
void |
browserInitialized(VRMLScene scene)
The browser has been initialized with new content. |
void |
browserShutdown()
The browser has been shut down and the previous content is no longer valid. |
void |
fill(org.eclipse.swt.widgets.Composite parent)
Construct the item. |
void |
run()
Method for the display thread to update frames per second and status bar text. |
void |
urlLoadFailed(java.lang.String msg)
The tried to load a URL and failed. |
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent evt)
We're being disposed of - clean up |
| Methods inherited from class org.eclipse.jface.action.ContributionItem |
|---|
dispose, fill, fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, toString, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FrameRateContributionItem(java.lang.String id,
BrowserCore core)
id - - The identifier for this ContributionItem.core - - The BrowserCore, source of our frame rate data.| Method Detail |
|---|
public void fill(org.eclipse.swt.widgets.Composite parent)
fill in interface org.eclipse.jface.action.IContributionItemfill in class org.eclipse.jface.action.ContributionItemparent - - The parent composite that this item will be added to,
presumably the status bar.public void browserInitialized(VRMLScene scene)
browserInitialized in interface BrowserCoreListenerscene - - The scene of the new contentpublic void urlLoadFailed(java.lang.String msg)
urlLoadFailed in interface BrowserCoreListenermsg - - An error message to go with the failurepublic void browserShutdown()
browserShutdown in interface BrowserCoreListenerpublic void browserDisposed()
browserDisposed in interface BrowserCoreListenerpublic void widgetDisposed(org.eclipse.swt.events.DisposeEvent evt)
widgetDisposed in interface org.eclipse.swt.events.DisposeListenerpublic void alarmAction(AlarmEvent ae)
alarmAction in interface AlarmListenerae - - The event that caused the alarmpublic void run()
run in interface java.lang.Runnable
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||