|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.gui.tool.listener.DistanceAreaListener
This listener is associated with the measurement tools (distance/area).
It will compute areas / accumulative distances each time a point event happens.
Of course it needs geographic information about scales, provided by the
MapControl
.
PointBehavior
Field Summary | |
static int |
DRAG_LIMIT
|
Constructor Summary | |
DistanceAreaListener(int x,
int y,
boolean area)
Constructor. |
Method Summary | |
boolean |
cancelDrawing()
This method asks the listener to cancel the current drawing process (currently unsued) |
java.awt.Cursor |
getCursor()
Gets the cursor to be used while this tool is active. |
void |
point(PointEvent event)
This method will be called when a point event happens. |
void |
setMapControl(MapControl mc)
Sets the MapControl object that will be updated by
this listener. |
void |
start()
This method cleans the listener (resets distance/area to zer and removes geometry). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int DRAG_LIMIT
Constructor Detail |
public DistanceAreaListener(int x, int y, boolean area)
x
- the x coordinate of the starting point clicked by the usery
- the y coordinate of the starting point clicked by the userarea
- whether an area (true) or a distance (false) has to be computed.Method Detail |
public void point(PointEvent event)
point
in interface PointToolListener
event
- the relevant point event the tool is waiting for.public java.awt.Cursor getCursor()
getCursor
in interface ToolListener
public boolean cancelDrawing()
cancelDrawing
in interface ToolListener
public void setMapControl(MapControl mc)
MapControl
object that will be updated by
this listener.
setMapControl
in interface ToolListener
mc
- the MapControl
object to be used by this listener.public void start()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |