org.jzy3d.chart.controllers.mouse
Class ChartMouseController
java.lang.Object
org.jzy3d.chart.controllers.ChartCameraController
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChartMouseController
public ChartMouseController()
ChartMouseController
public ChartMouseController(Chart chart)
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