Class NewtViewCameraController
java.lang.Object
org.jzy3d.plot3d.rendering.view.controllers.ViewCameraController
org.jzy3d.plot3d.rendering.view.controllers.NewtViewCameraController
- All Implemented Interfaces:
com.jogamp.newt.event.MouseListener
,com.jogamp.newt.event.NEWTEventListener
,EventListener
public class NewtViewCameraController
extends ViewCameraController
implements com.jogamp.newt.event.MouseListener
-
Field Summary
Modifier and TypeFieldDescriptionprotected IScreenCanvas
protected Coord2d
protected AbstractCameraThreadController
Fields inherited from class org.jzy3d.plot3d.rendering.view.controllers.ViewCameraController
controllerListeners, targets
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMouseSource
(IScreenCanvas canvas) void
void
dispose()
void
mouseClicked
(com.jogamp.newt.event.MouseEvent e) void
mouseDragged
(com.jogamp.newt.event.MouseEvent e) Compute shift or rotatevoid
mouseEntered
(com.jogamp.newt.event.MouseEvent e) void
mouseExited
(com.jogamp.newt.event.MouseEvent e) void
mouseMoved
(com.jogamp.newt.event.MouseEvent e) void
mousePressed
(com.jogamp.newt.event.MouseEvent e) Handles toggle between mouse rotation/auto rotation: double-click starts the animated rotation, while simple click stops it.void
mouseReleased
(com.jogamp.newt.event.MouseEvent e) void
mouseWheelMoved
(com.jogamp.newt.event.MouseEvent e) Compute zoomvoid
Methods inherited from class org.jzy3d.plot3d.rendering.view.controllers.ViewCameraController
addControllerEventListener, addTarget, fireControllerEvent, removeControllerEventListener, removeTarget, rotate, shift, zoom
-
Field Details
-
canvas
-
prevMouse
-
threadController
-
-
Constructor Details
-
NewtViewCameraController
public NewtViewCameraController() -
NewtViewCameraController
-
-
Method Details
-
addMouseSource
-
dispose
public void dispose()- Overrides:
dispose
in classViewCameraController
-
addSlaveThreadController
-
removeSlaveThreadController
public void removeSlaveThreadController() -
mousePressed
public void mousePressed(com.jogamp.newt.event.MouseEvent e) Handles toggle between mouse rotation/auto rotation: double-click starts the animated rotation, while simple click stops it.- Specified by:
mousePressed
in interfacecom.jogamp.newt.event.MouseListener
-
mouseDragged
public void mouseDragged(com.jogamp.newt.event.MouseEvent e) Compute shift or rotate- Specified by:
mouseDragged
in interfacecom.jogamp.newt.event.MouseListener
-
mouseWheelMoved
public void mouseWheelMoved(com.jogamp.newt.event.MouseEvent e) Compute zoom- Specified by:
mouseWheelMoved
in interfacecom.jogamp.newt.event.MouseListener
-
mouseClicked
public void mouseClicked(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseClicked
in interfacecom.jogamp.newt.event.MouseListener
-
mouseEntered
public void mouseEntered(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseEntered
in interfacecom.jogamp.newt.event.MouseListener
-
mouseExited
public void mouseExited(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseExited
in interfacecom.jogamp.newt.event.MouseListener
-
mouseReleased
public void mouseReleased(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseReleased
in interfacecom.jogamp.newt.event.MouseListener
-
mouseMoved
public void mouseMoved(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseMoved
in interfacecom.jogamp.newt.event.MouseListener
-