|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.j3d.renderer.java3d.navigation.NavigationProcessor
org.j3d.renderer.java3d.navigation.NavigationHandler
org.j3d.renderer.java3d.navigation.MouseViewHandler
An AWT based listener to drive navigation.
Instead of using behaviors this class does the job in a much smoother way by hooking AWT events directly from the canvas.
| Field Summary |
| Fields inherited from class org.j3d.renderer.java3d.navigation.NavigationProcessor |
AVATAR_CYLINDER, AVATAR_POINT, AVATAR_SHOULDERS |
| Constructor Summary | |
MouseViewHandler()
Create a new mouse handler with no canvas or view information set. |
|
| Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent evt)
Not used by this class |
void |
mouseEntered(java.awt.event.MouseEvent evt)
Process a mouse enter event. |
void |
mouseExited(java.awt.event.MouseEvent evt)
Not used by this class |
void |
mouseMoved(java.awt.event.MouseEvent evt)
Not used by this class |
void |
setCanvas(javax.media.j3d.Canvas3D canvas)
Set the canvas to use for this handler. |
void |
setViewInfo(javax.media.j3d.View view,
javax.media.j3d.TransformGroup tg)
Set the view and it's related transform group to use. |
| Methods inherited from class org.j3d.renderer.java3d.navigation.NavigationHandler |
mouseDragged, mousePressed, mouseReleased, setButtonNavigation, setNavigationStateListener |
| Methods inherited from class org.j3d.renderer.java3d.navigation.NavigationProcessor |
getNavigationState, getPosition, getTimerBehavior, move, orient, processNextFrame, setAvatarInfo, setCenterOfRotation, setCollisionListener, setFrameUpdateListener, setNavigationSpeed, setNavigationState, setOrbitTime, setViewInfo, setViewPath, setWorldInfo, startMove, stopMove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.MouseListener |
mousePressed, mouseReleased |
| Methods inherited from interface java.awt.event.MouseMotionListener |
mouseDragged |
| Constructor Detail |
public MouseViewHandler()
| Method Detail |
public void setViewInfo(javax.media.j3d.View view,
javax.media.j3d.TransformGroup tg)
setViewInfo in class NavigationProcessorview - is the View object that we're modifying.tg - The transform group above the view object that should be usedpublic void setCanvas(javax.media.j3d.Canvas3D canvas)
canvas - The new canvas to use for this handlerpublic void mouseMoved(java.awt.event.MouseEvent evt)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent evt)
mouseEntered in interface java.awt.event.MouseListenerevt - The event that caused this method to be calledpublic void mouseExited(java.awt.event.MouseEvent evt)
mouseExited in interface java.awt.event.MouseListener
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||