Class MapOverviewListener

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

public class MapOverviewListener extends Object implements org.gvsig.fmap.mapcontrol.tools.Listeners.PointListener

Listener for changes of the zoom caused by selecting a point on the associated MapOverview object by a single click of the button 1 of the mouse.

Updates the extent of its ViewPort with a zoom out operation, and enables/disables controls for managing the data.

Author:
Vicente Caballero Navarro
See Also:
  • ViewPort
  • Field Details

    • mapControl

      protected MapOverview mapControl
      Reference to the MapControl object that uses.
  • Constructor Details

    • MapOverviewListener

      public MapOverviewListener(MapOverview mapControl)

      Creates a new listener for zooming out the extent of the associated MapOverview object.

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

    • point

      public void point(org.gvsig.fmap.mapcontrol.tools.Events.PointEvent event)
      Specified by:
      point in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PointListener
    • 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
    • pointDoubleClick

      public void pointDoubleClick(org.gvsig.fmap.mapcontrol.tools.Events.PointEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException
      Specified by:
      pointDoubleClick in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PointListener
      Throws:
      org.gvsig.fmap.mapcontrol.tools.BehaviorException