public class ViewMouseController extends ViewCameraController implements com.jogamp.newt.event.MouseListener
| Modifier and Type | Field and Description |
|---|---|
protected IScreenCanvas |
canvas |
protected Coord2d |
prevMouse |
protected CameraThreadController |
threadController |
controllerListeners, targets| Constructor and Description |
|---|
ViewMouseController() |
ViewMouseController(View view) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMouseSource(IScreenCanvas canvas) |
void |
addSlaveThreadController(CameraThreadController controller) |
void |
dispose() |
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 |
removeSlaveThreadController() |
addControllerEventListener, addTarget, fireControllerEvent, removeControllerEventListener, removeTarget, rotate, shift, zoomprotected IScreenCanvas canvas
protected Coord2d prevMouse
protected CameraThreadController threadController
public ViewMouseController()
public ViewMouseController(View view)
public void addMouseSource(IScreenCanvas canvas)
public void dispose()
dispose in class ViewCameraControllerpublic void addSlaveThreadController(CameraThreadController controller)
public void removeSlaveThreadController()
public void mousePressed(com.jogamp.newt.event.MouseEvent e)
mousePressed in interface com.jogamp.newt.event.MouseListenerpublic void mouseDragged(com.jogamp.newt.event.MouseEvent e)
mouseDragged in interface com.jogamp.newt.event.MouseListenerpublic void mouseWheelMoved(com.jogamp.newt.event.MouseEvent e)
mouseWheelMoved in interface com.jogamp.newt.event.MouseListenerpublic void mouseClicked(com.jogamp.newt.event.MouseEvent e)
mouseClicked in interface com.jogamp.newt.event.MouseListenerpublic void mouseEntered(com.jogamp.newt.event.MouseEvent e)
mouseEntered in interface com.jogamp.newt.event.MouseListenerpublic void mouseExited(com.jogamp.newt.event.MouseEvent e)
mouseExited in interface com.jogamp.newt.event.MouseListenerpublic void mouseReleased(com.jogamp.newt.event.MouseEvent e)
mouseReleased in interface com.jogamp.newt.event.MouseListenerpublic void mouseMoved(com.jogamp.newt.event.MouseEvent e)
mouseMoved in interface com.jogamp.newt.event.MouseListenerCopyright © 2016. All rights reserved.