Class SelectImageListenerImpl

java.lang.Object
org.gvsig.fmap.mapcontrol.tools.SelectImageListenerImpl
All Implemented Interfaces:
PointListener, ToolListener

public class SelectImageListenerImpl extends Object implements PointListener

Listener to select the upper layer with raster data, that has information in the associated MapControl object, down the position selected by the mouse.

Author:
Nacho Brodin invalid input: '<'brodin_ign@gva.es>
  • Field Details

    • mapCtrl

      protected MapControl mapCtrl
      Reference to the MapControl object that uses.
    • wcPoint

      protected Point2D wcPoint
      World equivalent coordinates of the point 2D
  • Constructor Details

    • SelectImageListenerImpl

      public SelectImageListenerImpl(MapControl mapCtrl)

      Creates a new SelectImageListenerImpl object.

      Parameters:
      mapCtrl - the MapControl where are stored the layers
  • Method Details

    • point

      public void point(PointEvent event)
      Description copied from interface: PointListener

      Called when one click is pressed on the associated MapControl, or the location of the cursor of the mouse has changed on it.

      Specified by:
      point in interface PointListener
      Parameters:
      event - mouse event with the coordinates of the point selected on the associated MapControl
    • getImageCursor

      public Image getImageCursor()
      Description copied from interface: ToolListener

      Gets the Cursor associated to this tool.

      Specified by:
      getImageCursor in interface ToolListener
      Returns:
      component with the bitmap associated to this tool
    • cancelDrawing

      public boolean cancelDrawing()
      Description copied from interface: ToolListener

      Determines if the drawing process that this tool executes on the MapControl instance could be canceled or not.

      Specified by:
      cancelDrawing in interface ToolListener
      Returns:
      true if is cancellable; otherwise returns false
    • pointDoubleClick

      public void pointDoubleClick(PointEvent event)
      Description copied from interface: PointListener

      Called when a double click is pressed on the associated MapControl.

      Specified by:
      pointDoubleClick in interface PointListener
      Parameters:
      event - mouse event and the coordinates of the point selected on the associated MapControl