Class TLcdGXYViewZoomAction

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

public class TLcdGXYViewZoomAction extends ALcdAction implements ILcdAction, ILcdUndoableSource
This is a ILcdAction (i.e. an ActionListener) for zooming a ILcdGXYView of a given zoom factor.
See Also:
  • Constructor Details

    • TLcdGXYViewZoomAction

      public TLcdGXYViewZoomAction()
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent aActionEvent)
      Calls doZoom( getZoomFactor(), getGXYView() );
      Specified by:
      actionPerformed in interface ActionListener
    • doZoom

      public void doZoom(double aZoomFactor, ILcdGXYView aGXYView)
      Performs a Zoom of aZoomFactor in the given ILcdGXYView
    • setGXYView

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

      public ILcdGXYView getGXYView()
      See Also:
    • setZoomFactor

      public void setZoomFactor(double aZoomFactor)
      Sets the zoom factor to be considered by the actionPerformed method
    • getZoomFactor

      public double getZoomFactor()
      See Also:
    • addUndoableListener

      public void addUndoableListener(ILcdUndoableListener aUndoableListener)
      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:
      aUndoableListener - The listener to be notified when something undoable has happened.
    • removeUndoableListener

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

      protected void fireUndoableHappened(ILcdUndoable aUndoable)