Class TLcdGXYViewPanAction

java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.gxy.TLcdGXYViewPanAction
All Implemented Interfaces:
ILcdAction, ILcdUndoableSource, ILcdPropertyChangeSource, ActionListener, Serializable, EventListener

public class TLcdGXYViewPanAction extends ALcdAction implements ILcdAction, ILcdUndoableSource
This is a ILcdAction (i.e. an ActionListener) for panning a ILcdGXYView of [deltaX,deltaY] in screen coordinates.
See Also:
  • Constructor Details

    • TLcdGXYViewPanAction

      public TLcdGXYViewPanAction()
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent aActionEvent)
      Calls doPan( getDeltaX(), getDeltaY(), getGXYView() );
      Specified by:
      actionPerformed in interface ActionListener
    • doPan

      public void doPan(int aDeltaX, int aDeltaY, ILcdGXYView aGXYView)
      Performs a pan of [aDeltaX,aDeltaY] in screen coordinates in the given ILcdGXYView.`
    • addUndoableListener

      public void addUndoableListener(ILcdUndoableListener aListener)
      Description copied from interface: ILcdUndoableSource
      Adds a listener to this source, so this listener is notified when something undoable has happened.
      Specified by:
      addUndoableListener in interface ILcdUndoableSource
      Parameters:
      aListener - The listener to be notified when something undoable has happened.
    • removeUndoableListener

      public void removeUndoableListener(ILcdUndoableListener aListener)
      Description copied from interface: ILcdUndoableSource
      Removes the specified listener so it is no longer notified.
      Specified by:
      removeUndoableListener in interface ILcdUndoableSource
      Parameters:
      aListener - The listener to remove.
    • fireUndoableHappened

      protected void fireUndoableHappened(ILcdUndoable aUndoable)
    • setGXYView

      public void setGXYView(ILcdGXYView aGXYView)
      Sets the ILcdGXYView to by considered be the actionPerformed method
    • getGXYView

      public ILcdGXYView getGXYView()
      See Also:
    • setDeltaX

      public void setDeltaX(int aDeltaX)
      Sets the delta x in screen coordinates to by considered be the actionPerformed method
    • getDeltaX

      public int getDeltaX()
      See Also:
    • setDeltaY

      public void setDeltaY(int aDeltaY)
      Sets the delta y in screen coordinates to by considered be the actionPerformed method
    • getDeltaY

      public int getDeltaY()
      See Also: