public class AWTCameraMouseController extends AbstractCameraController implements MouseListener, MouseWheelListener, MouseMotionListener
DEFAULT_UPDATE_VIEW, prevMouse, threadController
controllerListeners, targets
Constructor and Description |
---|
AWTCameraMouseController() |
AWTCameraMouseController(Chart chart) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
boolean |
handleSlaveThread(MouseEvent e) |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e)
Compute shift or rotate
|
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e)
Handles toggle between mouse rotation/auto rotation: double-click starts
the animated rotation, while simple click stops it.
|
void |
mouseReleased(MouseEvent e) |
void |
mouseWheelMoved(MouseWheelEvent e)
Compute zoom
|
void |
register(Chart chart) |
int |
x(MouseEvent e) |
Coord2d |
xy(MouseEvent e) |
int |
y(MouseEvent e) |
addSlaveThreadController, removeSlaveThreadController, rotate, rotate, shift, shift, startThreadController, stopThreadController, zoomX, zoomX, zoomY, zoomY, zoomZ, zoomZ
addControllerEventListener, chart, fireControllerEvent, removeControllerEventListener, unregister
public AWTCameraMouseController()
public AWTCameraMouseController(Chart chart)
public void register(Chart chart)
register
in class AbstractController
public void dispose()
dispose
in class AbstractCameraController
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved
in interface MouseWheelListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public boolean handleSlaveThread(MouseEvent e)
public Coord2d xy(MouseEvent e)
public int y(MouseEvent e)
public int x(MouseEvent e)
Copyright © 2016. All rights reserved.