public class MapOverviewChangeZoomListener
extends java.lang.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.
ViewPort| Modifier and Type | Field and Description |
|---|---|
protected org.gvsig.fmap.mapcontrol.MapControl |
mapControl
Reference to the
MapControl object that uses. |
| Constructor and Description |
|---|
MapOverviewChangeZoomListener(org.gvsig.fmap.mapcontrol.MapControl mapControl)
Creates a new listener for changes of zoom at the associated
MapOverview object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelDrawing() |
java.awt.Image |
getImageCursor() |
void |
move(org.gvsig.fmap.mapcontrol.tools.Events.MoveEvent event) |
void |
rectangle(org.gvsig.fmap.mapcontrol.tools.Events.EnvelopeEvent event) |
protected org.gvsig.fmap.mapcontrol.MapControl mapControl
MapControl object that uses.public MapOverviewChangeZoomListener(org.gvsig.fmap.mapcontrol.MapControl mapControl)
Creates a new listener for changes of zoom at the associated MapOverview object.
mapControl - the MapControl object which represents the MapOverviewpublic boolean cancelDrawing()
cancelDrawing in interface org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListenerpublic java.awt.Image getImageCursor()
getImageCursor in interface org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListenerpublic void move(org.gvsig.fmap.mapcontrol.tools.Events.MoveEvent event)
throws org.gvsig.fmap.mapcontrol.tools.BehaviorException
move in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PanListenerorg.gvsig.fmap.mapcontrol.tools.BehaviorExceptionpublic void rectangle(org.gvsig.fmap.mapcontrol.tools.Events.EnvelopeEvent event)
throws org.gvsig.fmap.mapcontrol.tools.BehaviorException
rectangle in interface org.gvsig.fmap.mapcontrol.tools.Listeners.RectangleListenerorg.gvsig.fmap.mapcontrol.tools.BehaviorExceptionCopyright © 2024 gvSIG Association. All rights reserved.