es.prodevelop.gvsig.mobile.gui.tool.listener
Class ZoomInRectListener

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.gui.tool.listener.ZoomInRectListener
All Implemented Interfaces:
RectangleToolListener, ToolListener

public class ZoomInRectListener
extends java.lang.Object
implements RectangleToolListener

This listener is associated with the zoom-by-rectangle tool. It will zoom the map to the indicated rectangle.

Author:
jldominguez
See Also:
RectangleBehavior, ViewPort

Field Summary
static double ZOOM_OUT_FACTOR
           
 
Constructor Summary
ZoomInRectListener()
           
 
Method Summary
 boolean cancelDrawing()
          This method asks the listener to cancel the current drawing process (currently unsued)
 java.awt.Cursor getCursor()
          Gets the cursor that should be used while this tool is active.
 void point(PointEvent event)
          This method is called when a drag event happens.
 void rectangle(RectangleEvent event)
          This method will be called when the rectangle eventy happens after a drag-amd-drop process.
 void setMapControl(MapControl mc)
          Sets the MapControl object that will be updated by this listener.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZOOM_OUT_FACTOR

public static final double ZOOM_OUT_FACTOR
See Also:
Constant Field Values
Constructor Detail

ZoomInRectListener

public ZoomInRectListener()
Method Detail

rectangle

public void rectangle(RectangleEvent event)
This method will be called when the rectangle eventy happens after a drag-amd-drop process.

Specified by:
rectangle in interface RectangleToolListener
Parameters:
event - the rectangle event that indicates the zone of interest

getCursor

public java.awt.Cursor getCursor()
Gets the cursor that should be used while this tool is active.

Specified by:
getCursor in interface ToolListener
Returns:
the cursor that should be used while this tool is active.

cancelDrawing

public boolean cancelDrawing()
This method asks the listener to cancel the current drawing process (currently unsued)

Specified by:
cancelDrawing in interface ToolListener
Returns:
whether it was possible to cancel the drawing

setMapControl

public void setMapControl(MapControl mc)
Sets the MapControl object that will be updated by this listener.

Specified by:
setMapControl in interface ToolListener
Parameters:
mc - the MapControl object to be used by this listener.

point

public void point(PointEvent event)
This method is called when a drag event happens. The listener tells the map to update the borders of the rectangle that is being drawn to indicated the current zone of interest.

Specified by:
point in interface RectangleToolListener
Parameters:
event - the point event that indicates a drag event