Package org.gvsig.fmap.mapcontrol.tools
Class SelectImageListenerImpl
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.SelectImageListenerImpl
- All Implemented Interfaces:
PointListener,ToolListener
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 Summary
FieldsModifier and TypeFieldDescriptionprotected MapControlReference to theMapControlobject that uses.protected Point2DWorld equivalent coordinates of the point 2D -
Constructor Summary
ConstructorsConstructorDescriptionSelectImageListenerImpl(MapControl mapCtrl) Creates a newSelectImageListenerImplobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if the drawing process that this tool executes on theMapControlinstance could be canceled or not.Gets theCursorassociated to this tool.voidpoint(PointEvent event) Called when one click is pressed on the associatedMapControl, or the location of the cursor of the mouse has changed on it.voidpointDoubleClick(PointEvent event) Called when a double click is pressed on the associatedMapControl.
-
Field Details
-
mapCtrl
Reference to theMapControlobject that uses. -
wcPoint
World equivalent coordinates of the point 2D
-
-
Constructor Details
-
SelectImageListenerImpl
Creates a new
SelectImageListenerImplobject.- Parameters:
mapCtrl- theMapControlwhere are stored the layers
-
-
Method Details
-
point
Description copied from interface:PointListenerCalled when one click is pressed on the associated
MapControl, or the location of the cursor of the mouse has changed on it.- Specified by:
pointin interfacePointListener- Parameters:
event- mouse event with the coordinates of the point selected on the associatedMapControl
-
getImageCursor
Description copied from interface:ToolListenerGets the
Cursorassociated to this tool.- Specified by:
getImageCursorin interfaceToolListener- Returns:
- component with the bitmap associated to this tool
-
cancelDrawing
public boolean cancelDrawing()Description copied from interface:ToolListenerDetermines if the drawing process that this tool executes on the
MapControlinstance could be canceled or not.- Specified by:
cancelDrawingin interfaceToolListener- Returns:
trueif is cancellable; otherwise returnsfalse
-
pointDoubleClick
Description copied from interface:PointListenerCalled when a double click is pressed on the associated
MapControl.- Specified by:
pointDoubleClickin interfacePointListener- Parameters:
event- mouse event and the coordinates of the point selected on the associatedMapControl
-