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 Link icon

    • TLcdGXYViewPanAction Link icon

      public TLcdGXYViewPanAction()
  • Method Details Link icon

    • actionPerformed Link icon

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

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

      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 Link icon

      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 Link icon

      protected void fireUndoableHappened(ILcdUndoable aUndoable)
    • setGXYView Link icon

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

      public ILcdGXYView getGXYView()
      See Also:
    • setDeltaX Link icon

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

      public int getDeltaX()
      See Also:
    • setDeltaY Link icon

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

      public int getDeltaY()
      See Also: