public class MapOverviewPanListener extends java.lang.Object implements 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.
| Modifier and Type | Field and Description |
|---|---|
protected MapControl |
mapControl
Reference to the
MapControl object that uses. |
| Constructor and Description |
|---|
MapOverviewPanListener(MapControl mapControl)
Creates a new listener for changing the position of 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 |
move(MoveEvent event)
Called when user drags the mouse on the view.
|
protected MapControl mapControl
MapControl object that uses.public MapOverviewPanListener(MapControl mapControl)
Creates a new listener for changing the position of the extent of the associated MapOverview object.
mapControl - the MapControl object which represents the MapOverviewpublic 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 move(MoveEvent event) throws BehaviorException
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.
move in interface PanListenerevent - mouse event information about the initial and final positions of the movementBehaviorException - will be thrown when fails the process of this tool