org.jzy3d.plot3d.rendering.view.controllers
Class ViewMouseController
java.lang.Object
org.jzy3d.plot3d.rendering.view.controllers.ViewCameraController
org.jzy3d.plot3d.rendering.view.controllers.ViewMouseController
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
public class ViewMouseController
- extends ViewCameraController
- implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewMouseController
public ViewMouseController()
ViewMouseController
public ViewMouseController(View view)
addMouseSource
public void addMouseSource(IScreenCanvas canvas)
dispose
public void dispose()
- Overrides:
dispose
in class ViewCameraController
addSlaveThreadController
public void addSlaveThreadController(ChartThreadController controller)
removeSlaveThreadController
public void removeSlaveThreadController()
mousePressed
public void mousePressed(java.awt.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 interface java.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Compute shift or rotate
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
- Compute zoom
- Specified by:
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener