org.jzy3d.chart.controllers.mouse
Class ChartMouseController

java.lang.Object
  extended by org.jzy3d.chart.controllers.ChartCameraController
      extended by org.jzy3d.chart.controllers.mouse.ChartMouseController
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
Direct Known Subclasses:
GraphChartMouseController

public class ChartMouseController
extends ChartCameraController
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener


Constructor Summary
ChartMouseController()
           
ChartMouseController(Chart chart)
           
 
Method Summary
 void addSlaveThreadController(ChartThreadController controller)
           
 void addTarget(Chart chart)
           
 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.chart.controllers.ChartCameraController
addControllerEventListener, removeControllerEventListener, removeTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartMouseController

public ChartMouseController()

ChartMouseController

public ChartMouseController(Chart chart)
Method Detail

addTarget

public void addTarget(Chart chart)
Overrides:
addTarget in class ChartCameraController

dispose

public void dispose()
Overrides:
dispose in class ChartCameraController

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