|
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 Xj3DNavigationUIManager
An abstract interface for navigation-specific user interface control of the the browser.
This allows an external application to replace existing chunks of the user interface controls with their own custom code, yet retain all the functionality of the stock user interface. Making calls to methods on this class will ensure that all requirements for synchronising with the browser's internal event model will be met. Note that calls to these methods will not be subject to the SAI's beginUpdate()/endUpdate() buffering strategy. However, it will comply to all the rest of the event model behaviour, such as
| Method Summary | |
|---|---|
void |
addNavigationUIListener(Xj3DNavigationUIListener l)
Add a listener for navigation UI feedback. |
void |
fitToWorld(boolean animated)
Activate the temporary navigation state that places the viewpoint in a position such that the entire world fits within the borders of the current viewspace. |
Xj3DViewpoint[] |
getCurrentViewpoints()
Get the list of current viewpoints that are to be displayed. |
java.lang.String |
getNavigationState()
Get the current navigation state that is active. |
void |
nextViewpoint()
Change to the next viewpoint in the list. |
void |
previousViewpoint()
Change to the previous viewpoint in the list. |
void |
recenterViewpoint()
Move the viewpoint back to the default position of the currently active bound viewpoint. |
void |
removeNavigationUIListener(Xj3DNavigationUIListener l)
Remove a listener for navigation UI feedback. |
void |
selectViewpoint(Xj3DViewpoint vp)
Select the given viewpoint as the new location to move to. |
void |
setNavigationState(java.lang.String state)
Change the navigation state to the new state as indicated by the given string. |
void |
straightenViewpoint()
Correct the viewpoint's current orientation so that it is back into the default orientation for the currently bound viewpoint. |
void |
viewpointLookAt()
Activate the temporary navigation state that has the viewpoint look at the next object that is clicked. |
| Method Detail |
|---|
void setNavigationState(java.lang.String state)
state - The state string to use or nulljava.lang.String getNavigationState()
void fitToWorld(boolean animated)
animated - True if the movement should be animated to the final
viewpoint positionvoid viewpointLookAt()
void recenterViewpoint()
void straightenViewpoint()
void nextViewpoint()
void previousViewpoint()
Xj3DViewpoint[] getCurrentViewpoints()
void selectViewpoint(Xj3DViewpoint vp)
The - viewpoint instance to usevoid addNavigationUIListener(Xj3DNavigationUIListener l)
l - The listener instance to addvoid removeNavigationUIListener(Xj3DNavigationUIListener l)
l - The listener instance to remove
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||