Class NewtViewCameraController

java.lang.Object
org.jzy3d.plot3d.rendering.view.controllers.ViewCameraController
org.jzy3d.plot3d.rendering.view.controllers.NewtViewCameraController
All Implemented Interfaces:
com.jogamp.newt.event.MouseListener, com.jogamp.newt.event.NEWTEventListener, EventListener

public class NewtViewCameraController extends ViewCameraController implements com.jogamp.newt.event.MouseListener
  • Field Details

  • Constructor Details

    • NewtViewCameraController

      public NewtViewCameraController()
    • NewtViewCameraController

      public NewtViewCameraController(View view)
  • Method Details

    • addMouseSource

      public void addMouseSource(IScreenCanvas canvas)
    • dispose

      public void dispose()
      Overrides:
      dispose in class ViewCameraController
    • addSlaveThreadController

      public void addSlaveThreadController(AbstractCameraThreadController controller)
    • removeSlaveThreadController

      public void removeSlaveThreadController()
    • mousePressed

      public 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.
      Specified by:
      mousePressed in interface com.jogamp.newt.event.MouseListener
    • mouseDragged

      public void mouseDragged(com.jogamp.newt.event.MouseEvent e)
      Compute shift or rotate
      Specified by:
      mouseDragged in interface com.jogamp.newt.event.MouseListener
    • mouseWheelMoved

      public void mouseWheelMoved(com.jogamp.newt.event.MouseEvent e)
      Compute zoom
      Specified by:
      mouseWheelMoved in interface com.jogamp.newt.event.MouseListener
    • mouseClicked

      public void mouseClicked(com.jogamp.newt.event.MouseEvent e)
      Specified by:
      mouseClicked in interface com.jogamp.newt.event.MouseListener
    • mouseEntered

      public void mouseEntered(com.jogamp.newt.event.MouseEvent e)
      Specified by:
      mouseEntered in interface com.jogamp.newt.event.MouseListener
    • mouseExited

      public void mouseExited(com.jogamp.newt.event.MouseEvent e)
      Specified by:
      mouseExited in interface com.jogamp.newt.event.MouseListener
    • mouseReleased

      public void mouseReleased(com.jogamp.newt.event.MouseEvent e)
      Specified by:
      mouseReleased in interface com.jogamp.newt.event.MouseListener
    • mouseMoved

      public void mouseMoved(com.jogamp.newt.event.MouseEvent e)
      Specified by:
      mouseMoved in interface com.jogamp.newt.event.MouseListener