Package snap.gfx3d
Class MouseHandler
java.lang.Object
snap.gfx3d.MouseHandler
A class to rotate/zoom camera for mouse events.
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
final int
final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
mouseDragged
(ViewEvent anEvent) Handle MouseDrag.void
mousePressed
(ViewEvent anEvent) Handle MousePress.void
processEvent
(ViewEvent anEvent) Viewer method.void
Handle Scroll.
-
Field Details
-
CONSTRAIN_NONE
public final int CONSTRAIN_NONE- See Also:
-
CONSTRAIN_PITCH
public final int CONSTRAIN_PITCH- See Also:
-
CONSTRAIN_YAW
public final int CONSTRAIN_YAW- See Also:
-
-
Constructor Details
-
MouseHandler
Constructor.
-
-
Method Details
-
processEvent
Viewer method. -
mousePressed
Handle MousePress. -
mouseDragged
Handle MouseDrag. -
scroll
Handle Scroll.
-