Class NewtCameraMouseController
java.lang.Object
org.jzy3d.chart.controllers.AbstractController
org.jzy3d.chart.controllers.camera.AbstractCameraController
org.jzy3d.chart.controllers.mouse.camera.NewtCameraMouseController
- All Implemented Interfaces:
com.jogamp.newt.event.MouseListener
,com.jogamp.newt.event.NEWTEventListener
,EventListener
,ICameraMouseController
public class NewtCameraMouseController
extends AbstractCameraController
implements com.jogamp.newt.event.MouseListener
-
Field Summary
Fields inherited from class org.jzy3d.chart.controllers.camera.AbstractCameraController
perf, threadController, updateViewDefault
Fields inherited from class org.jzy3d.chart.controllers.AbstractController
controllerListeners, target
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
boolean
handleSlaveThread
(com.jogamp.newt.event.MouseEvent e) static boolean
isDoubleClick
(com.jogamp.newt.event.MouseEvent e) static boolean
isLeftDown
(com.jogamp.newt.event.MouseEvent e) static boolean
isRightDown
(com.jogamp.newt.event.MouseEvent e) 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.chart.controllers.camera.AbstractCameraController
addSlaveThreadController, addThread, getLODPerf, getSlaveThreadController, getThread, isUpdateViewDefault, removeSlaveThreadController, rotate, rotate, rotate, setLODPerf, setUpdateViewDefault, shift, shift, startThreadController, stopThreadController, zoomX, zoomX, zoomY, zoomY, zoomZ, zoomZ
Methods inherited from class org.jzy3d.chart.controllers.AbstractController
addControllerEventListener, fireControllerEvent, getChart, getCharts, removeControllerEventListener, unregister
-
Field Details
-
prevMouse
-
-
Constructor Details
-
NewtCameraMouseController
public NewtCameraMouseController() -
NewtCameraMouseController
-
-
Method Details
-
register
- Overrides:
register
in classAbstractController
-
dispose
public void dispose()- Overrides:
dispose
in classAbstractCameraController
-
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
-
handleSlaveThread
public boolean handleSlaveThread(com.jogamp.newt.event.MouseEvent e) -
mouseDragged
public void mouseDragged(com.jogamp.newt.event.MouseEvent e) Compute shift or rotate- Specified by:
mouseDragged
in interfacecom.jogamp.newt.event.MouseListener
-
isLeftDown
public static boolean isLeftDown(com.jogamp.newt.event.MouseEvent e) -
isRightDown
public static boolean isRightDown(com.jogamp.newt.event.MouseEvent e) -
isDoubleClick
public static boolean isDoubleClick(com.jogamp.newt.event.MouseEvent e) -
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
-