public class MapOverviewListener extends java.lang.Object implements PointListener
Listener for changes of the zoom caused by selecting a point on the associated MapOverview object
by a single click of the button 1 of the mouse.
Updates the extent of its ViewPort with a zoom out operation, and enables/disables controls for
managing the data.
ViewPort| Modifier and Type | Field and Description |
|---|---|
protected MapOverview |
mapControl
Reference to the
MapControl object that uses. |
| Constructor and Description |
|---|
MapOverviewListener(MapOverview mapControl)
Creates a new listener for zooming out the extent of the associated
MapOverview object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelDrawing()
Determines if the drawing process that this tool executes on the
MapControl
instance could be canceled or not. |
java.awt.Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
void |
point(PointEvent event)
Called when one click is pressed on the associated
MapControl, or the location of the cursor
of the mouse has changed on it. |
void |
pointDoubleClick(PointEvent event)
Called when a double click is pressed on the associated
MapControl. |
protected MapOverview mapControl
MapControl object that uses.public MapOverviewListener(MapOverview mapControl)
Creates a new listener for zooming out the extent of the associated MapOverview object.
mapControl - the MapControl object which represents the MapOverviewpublic void point(PointEvent event)
PointListenerCalled when one click is pressed on the associated MapControl, or the location of the cursor
of the mouse has changed on it.
point in interface PointListenerevent - mouse event with the coordinates of the point selected on the associated MapControlpublic java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
getImageCursor in interface ToolListenerpublic boolean cancelDrawing()
ToolListenerDetermines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
cancelDrawing in interface ToolListenertrue if is cancellable; otherwise returns falsepublic void pointDoubleClick(PointEvent event) throws BehaviorException
PointListenerCalled when a double click is pressed on the associated MapControl.
pointDoubleClick in interface PointListenerevent - mouse event and the coordinates of the point selected on the associated MapControlBehaviorException - will be thrown when fails the process of this tool