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

public class AreaListener extends org.gvsig.fmap.mapcontrol.tools.AreaListenerImpl

Listener for calculating the area of a polygon, defined in the associated MapControl object.

Moves the extent of the associated MapControl object according the movement between the initial and final points of the line determined by the movement dragged with the third button of the mouse.

Updates the status bar of the main frame of the application with the current area.

Author:
Vicente Caballero Navarro
See Also:
  • AreaListenerImpl
  • Field Summary

    Fields inherited from class org.gvsig.fmap.mapcontrol.tools.AreaListenerImpl

    event, mapCtrl
  • Constructor Summary

    Constructors
    Constructor
    Description
    AreaListener(org.gvsig.fmap.mapcontrol.MapControl mc)
    Creates a new listener for calculating the area of a polygon and displaying it at the status bar of the main frame of the application.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    points(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event)
     

    Methods inherited from class org.gvsig.fmap.mapcontrol.tools.AreaListenerImpl

    cancelDrawing, getImageCursor, main, pointFixed, polylineFinished, returnArea, returnCoordsArea, returnGeoCArea

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AreaListener

      public AreaListener(org.gvsig.fmap.mapcontrol.MapControl mc)

      Creates a new listener for calculating the area of a polygon and displaying it at the status bar of the main frame of the application.

      Parameters:
      mc - the MapControl where is calculated the area
  • Method Details

    • points

      public void points(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event)
      Specified by:
      points in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener
      Overrides:
      points in class org.gvsig.fmap.mapcontrol.tools.AreaListenerImpl