Package org.gvsig.fmap.mapcontrol.tools
Class PanListenerImpl
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.PanListenerImpl
- All Implemented Interfaces:
PanListener,ToolListener
Listener for moving the extent of the associated MapControl object
according the movement between the initial and final points of line determined by the movement
dragging with the third button of the mouse.
Updates the extent of its ViewPort with the new position.
- Author:
- Vicente Caballero Navarro
-
Constructor Summary
ConstructorsConstructorDescriptionPanListenerImpl(MapControl mapControl) Creates a new listener for changing the position of the extent of the associatedMapControlobject. -
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.voidCalled when user drags the mouse on the view.
-
Constructor Details
-
PanListenerImpl
Creates a new listener for changing the position of the extent of the associated
MapControlobject.- Parameters:
mapControl- theMapControlwhere will be applied the changes
-
-
Method Details
-
move
Description copied from interface:PanListenerCalled when user drags the mouse on the view.
Updates the extent coordinates according to the direction of the movement between the initial and final points of line determined by the move of the mouse.
- Specified by:
movein interfacePanListener- Parameters:
event- mouse event information about the initial and final positions of the movement
-
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
-