Class AbstractPanInteractor

java.lang.Object
org.apache.batik.swing.gvt.InteractorAdapter
org.apache.batik.swing.gvt.AbstractPanInteractor
All Implemented Interfaces:
KeyListener, MouseListener, MouseMotionListener, EventListener, Interactor

public abstract class AbstractPanInteractor extends InteractorAdapter
This class represents a pan interactor. To use it, just redefine the InteractorAdapter.startInteraction(java.awt.event.InputEvent) method.
Version:
$Id: AbstractPanInteractor.java 1808975 2017-09-20 08:59:36Z ssteiner $
  • Field Details

    • PAN_CURSOR

      public static final Cursor PAN_CURSOR
      The cursor for panning.
    • finished

      protected boolean finished
      Whether the interactor has finished.
    • xStart

      protected int xStart
      The mouse x start position.
    • yStart

      protected int yStart
      The mouse y start position.
    • xCurrent

      protected int xCurrent
      The mouse x current position.
    • yCurrent

      protected int yCurrent
      The mouse y current position.
    • previousCursor

      protected Cursor previousCursor
      To store the previous cursor.
  • Constructor Details

    • AbstractPanInteractor

      public AbstractPanInteractor()
  • Method Details