Class NewtMousePickingPan2dController

All Implemented Interfaces:
com.jogamp.newt.event.MouseListener, com.jogamp.newt.event.NEWTEventListener, EventListener, ICameraMouseController, IMousePickingController

public class NewtMousePickingPan2dController extends NewtMousePickingController
  • Field Details

    • done

      protected boolean done
    • PAN_FACTOR

      protected static float PAN_FACTOR
    • lastMouseX

      protected int lastMouseX
    • lastMouseY

      protected int lastMouseY
  • Constructor Details

    • NewtMousePickingPan2dController

      public NewtMousePickingPan2dController()
    • NewtMousePickingPan2dController

      public NewtMousePickingPan2dController(Chart chart)
    • NewtMousePickingPan2dController

      public NewtMousePickingPan2dController(Chart chart, int brushSize)
    • NewtMousePickingPan2dController

      public NewtMousePickingPan2dController(Chart chart, int brushSize, int bufferSize)
  • Method Details

    • mouseDragged

      public void mouseDragged(com.jogamp.newt.event.MouseEvent e)
      *************
      Specified by:
      mouseDragged in interface com.jogamp.newt.event.MouseListener
      Overrides:
      mouseDragged in class NewtMousePickingController
    • mouseWheelMoved

      public void mouseWheelMoved(com.jogamp.newt.event.MouseEvent e)
      Description copied from class: NewtMousePickingController
      Compute zoom
      Specified by:
      mouseWheelMoved in interface com.jogamp.newt.event.MouseListener
      Overrides:
      mouseWheelMoved in class NewtMousePickingController
    • zoom

      protected void zoom(float factor)
      *******************
    • pan

      protected void pan(Coord3d from, Coord3d to)