Class MapOverviewPanListener

java.lang.Object
org.gvsig.app.project.documents.view.toolListeners.MapOverviewPanListener
All Implemented Interfaces:
org.gvsig.fmap.mapcontrol.tools.Listeners.PanListener, org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener

public class MapOverviewPanListener extends Object implements org.gvsig.fmap.mapcontrol.tools.Listeners.PanListener

Listener for moving the extent of the associated MapOverview object according the movement between the initial and final points of line determined by the movement dragging with the third button of the mouse.

Updates the extent of its ViewPort with the new position.

Author:
Vicente Caballero Navarro
  • Field Details

    • mapControl

      protected org.gvsig.fmap.mapcontrol.MapControl mapControl
      Reference to the MapControl object that uses.
  • Constructor Details

    • MapOverviewPanListener

      public MapOverviewPanListener(org.gvsig.fmap.mapcontrol.MapControl mapControl)

      Creates a new listener for changing the position of the extent of the associated MapOverview object.

      Parameters:
      mapControl - the MapControl object which represents the MapOverview
  • Method Details

    • getImageCursor

      public Image getImageCursor()
      Specified by:
      getImageCursor in interface org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
    • cancelDrawing

      public boolean cancelDrawing()
      Specified by:
      cancelDrawing in interface org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
    • move

      public void move(org.gvsig.fmap.mapcontrol.tools.Events.MoveEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException
      Specified by:
      move in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PanListener
      Throws:
      org.gvsig.fmap.mapcontrol.tools.BehaviorException