|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.ui.navigation.NavigationStateManager
public class NavigationStateManager
A handler for navigation state to make sure that all the right events are passed around the system and everyone agrees on the same state.
This class will change the cursor on the canvas in response to the current mouse and navigation state. There are three cursors used for walk, tilt and pan states. These can be found as:
Constructor Summary | |
---|---|
NavigationStateManager(java.awt.Component canvas)
Create a new state manager that deals with the given canvas. |
Method Summary | |
---|---|
int |
getNavigationState()
Callback to ask the listener what navigation state it thinks it is in. |
void |
setMouseHandler(NavigationMouseProcessor view)
Set the navigation handler instance to use. |
void |
setNavigationState(int state)
Notification that the panning state has changed to the new state. |
void |
setNavigationStateListener(NavigationStateListener l)
Set the listener for navigation state change notifications. |
void |
setToolbar(NavigationToolbar tbr)
Set the toolbar instance to use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NavigationStateManager(java.awt.Component canvas)
canvas
- The canvas to useMethod Detail |
---|
public void setToolbar(NavigationToolbar tbr)
tbr
- The new toolbar instance to usepublic void setMouseHandler(NavigationMouseProcessor view)
view
- The new processor for the mouse navigationpublic void setNavigationStateListener(NavigationStateListener l)
l
- The listener to use for change updatespublic void setNavigationState(int state)
state
- One of the state values declared herepublic int getNavigationState()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |