Class MapOverviewPanListener
java.lang.Object
org.gvsig.app.project.documents.view.toolListeners.MapOverviewPanListener
- All Implemented Interfaces:
org.gvsig.fmap.mapcontrol.tools.Listeners.PanListener,org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
public class MapOverviewPanListener
extends Object
implements org.gvsig.fmap.mapcontrol.tools.Listeners.PanListener
Listener for moving the extent of the associated MapOverview 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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.gvsig.fmap.mapcontrol.MapControlReference to theMapControlobject that uses. -
Constructor Summary
ConstructorsConstructorDescriptionMapOverviewPanListener(org.gvsig.fmap.mapcontrol.MapControl mapControl) Creates a new listener for changing the position of the extent of the associatedMapOverviewobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidmove(org.gvsig.fmap.mapcontrol.tools.Events.MoveEvent event)
-
Field Details
-
mapControl
protected org.gvsig.fmap.mapcontrol.MapControl mapControlReference to theMapControlobject that uses.
-
-
Constructor Details
-
MapOverviewPanListener
public MapOverviewPanListener(org.gvsig.fmap.mapcontrol.MapControl mapControl) Creates a new listener for changing the position of the extent of the associated
MapOverviewobject.- Parameters:
mapControl- theMapControlobject which represents theMapOverview
-
-
Method Details
-
getImageCursor
- Specified by:
getImageCursorin interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
-
cancelDrawing
public boolean cancelDrawing()- Specified by:
cancelDrawingin interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
-
move
public void move(org.gvsig.fmap.mapcontrol.tools.Events.MoveEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException - Specified by:
movein interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.PanListener- Throws:
org.gvsig.fmap.mapcontrol.tools.BehaviorException
-