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