|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Xj3DNavigationUIListener
Listener for navigation user interface state change feedback from the internals of the browser.
These callback methods provide information for changes within an existing scene. For bulk changes, such as the change of scene, please use the base browser listener interface from the SAI.
| Method Summary | |
|---|---|
void |
availableNavigationStatesChanged(java.lang.String[] states)
The list of available navigation states has changed to this new list. |
void |
availableViewpointsChanged(Xj3DViewpoint[] viewpoints)
The list of active viewpoints have been changed to this new list. |
void |
selectedNavigationStateChanged(java.lang.String state)
Notification that the currently selected navigation state has changed to this new value. |
void |
selectedViewpointChanged(Xj3DViewpoint vp)
Notification that the selected viewpoint has been changed to this new instance. |
void |
viewpointAdded(Xj3DViewpoint vp)
Notification that this viewpoint has been appended to the list of available viewpoints. |
void |
viewpointRemoved(Xj3DViewpoint vp)
Notification that this viewpoint has been removed from the list of available viewpoints. |
| Method Detail |
|---|
void availableViewpointsChanged(Xj3DViewpoint[] viewpoints)
If the scene contains no viewpoints at all (except the default bindable), then this will be called with a null parameter.
On scene or navigation layer change, it is guaranteed that this method will be called before the notification of the actual bound viewpoint.
An - array of exactly the number of viewpoints in the listvoid selectedViewpointChanged(Xj3DViewpoint vp)
If the file contains no viewpoints or the default viewpoint is bound (due to unbinding all real viewpoints on the stack) then this will be called with a null parameter.
It is guaranteed that this will always contain something from the currently active viewpoint list. If all change, that callback will be called before this one, to ensure consistency.
vp - The viewpoint instance that is now selected or nullvoid viewpointAdded(Xj3DViewpoint vp)
vp - The viewpoint instance that was addedvoid viewpointRemoved(Xj3DViewpoint vp)
vp - The viewpoint instance that was addedvoid availableNavigationStatesChanged(java.lang.String[] states)
states - An array of the available state strings.void selectedNavigationStateChanged(java.lang.String state)
state - The name of the state that is now the active state
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||