org.jzy3d.plot3d.rendering.view.controllers
Class ViewMouseController

java.lang.Object
  extended by org.jzy3d.plot3d.rendering.view.controllers.ViewCameraController
      extended by 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


Constructor Summary
ViewMouseController()
           
ViewMouseController(View view)
           
 
Method Summary
 void addMouseSource(IScreenCanvas canvas)
           
 void addSlaveThreadController(ChartThreadController controller)
           
 void dispose()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
          Compute shift or rotate
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 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.
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
          Compute zoom
 void removeSlaveThreadController()
           
 
Methods inherited from class org.jzy3d.plot3d.rendering.view.controllers.ViewCameraController
addControllerEventListener, addTarget, removeControllerEventListener, removeTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewMouseController

public ViewMouseController()

ViewMouseController

public ViewMouseController(View view)
Method Detail

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