Class PanInteractor

All Implemented Interfaces:
Interactor, KeyListener, MouseListener, MouseMotionListener, EventListener

public class PanInteractor extends ViewportInteractor
  • Constructor Details

    • PanInteractor

      public PanInteractor()
  • Method Details

    • mousePressed

      public void mousePressed(MouseEvent event)
      Description copied from class: AbstractInteractor
      Invoked when a mouse button has been pressed on a component.

      The default implementation does nothing.

      Specified by:
      mousePressed in interface MouseListener
      Overrides:
      mousePressed in class AbstractInteractor
      Parameters:
      event - The mouse event.
    • mouseDragged

      public void mouseDragged(MouseEvent event)
      Description copied from class: AbstractInteractor
      Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

      Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

      The default implementation does nothing.

      Specified by:
      mouseDragged in interface MouseMotionListener
      Overrides:
      mouseDragged in class AbstractInteractor
      Parameters:
      event - The mouse event.
    • getCursor

      public Cursor getCursor()
      Specified by:
      getCursor in interface Interactor
      Overrides:
      getCursor in class AbstractInteractor