Class PolyLineSelectionListener

java.lang.Object
org.gvsig.selectiontools.app.extension.tools.PolyLineSelectionListener
All Implemented Interfaces:
org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener, org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
Direct Known Subclasses:
PolyLineSelectListener

public class PolyLineSelectionListener extends Object implements org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener

Listener that selects all features of the active and vector layers which intersect with the defined polyline in the associated MapControl object.

The selection will be produced after user finishes the creation of the polyline.

Author:
Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
  • Constructor Details

    • PolyLineSelectionListener

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

      Creates a new PolygonSelectionListener object.

      Parameters:
      mc - the MapControl where is drawn the polyline
  • Method Details

    • getCursor

      public Cursor getCursor()
    • cancelDrawing

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

      public void points(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException
      Specified by:
      points in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener
      Throws:
      org.gvsig.fmap.mapcontrol.tools.BehaviorException
    • pointFixed

      public void pointFixed(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException
      Specified by:
      pointFixed in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener
      Throws:
      org.gvsig.fmap.mapcontrol.tools.BehaviorException
    • polylineFinished

      public void polylineFinished(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException
      Specified by:
      polylineFinished in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener
      Throws:
      org.gvsig.fmap.mapcontrol.tools.BehaviorException
    • getImageCursor

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