Class MapOverviewChangeZoomListener
java.lang.Object
org.gvsig.app.project.documents.view.toolListeners.MapOverviewChangeZoomListener
- All Implemented Interfaces:
org.gvsig.fmap.mapcontrol.tools.Listeners.PanListener,org.gvsig.fmap.mapcontrol.tools.Listeners.RectangleListener,org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
public class MapOverviewChangeZoomListener
extends Object
implements org.gvsig.fmap.mapcontrol.tools.Listeners.RectangleListener, org.gvsig.fmap.mapcontrol.tools.Listeners.PanListener
Listener for changes of the zoom caused by selecting a rectangular area on the associated
MapOverview object with the first button of the mouse.
If the kind of action was a movement on the associated object, updates the extent of its rectangular area.
If the kind of action is the selection of a rectangular area, and is bigger than 3x3 pixels,
applies a zoom in operation centering its ViewPort according the equivalent extent
in map coordinates.
- Author:
- jmvivo
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.gvsig.fmap.mapcontrol.MapControlReference to theMapControlobject that uses. -
Constructor Summary
ConstructorsConstructorDescriptionMapOverviewChangeZoomListener(org.gvsig.fmap.mapcontrol.MapControl mapControl) Creates a new listener for changes of zoom at the associatedMapOverviewobject. -
Method Summary
-
Field Details
-
mapControl
protected org.gvsig.fmap.mapcontrol.MapControl mapControlReference to theMapControlobject that uses.
-
-
Constructor Details
-
MapOverviewChangeZoomListener
public MapOverviewChangeZoomListener(org.gvsig.fmap.mapcontrol.MapControl mapControl) Creates a new listener for changes of zoom at the associated
MapOverviewobject.- Parameters:
mapControl- theMapControlobject which represents theMapOverview
-
-
Method Details
-
rectangle
public void rectangle(org.gvsig.fmap.mapcontrol.tools.Events.EnvelopeEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException - Specified by:
rectanglein interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.RectangleListener- Throws:
org.gvsig.fmap.mapcontrol.tools.BehaviorException
-
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
-