|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.tools.AreaListenerImpl
Implementación de la interfaz MeasureListener como herramienta para medir el área.
Field Summary | |
protected MeasureEvent |
event
|
protected MapControl |
mapCtrl
|
Constructor Summary | |
AreaListenerImpl(MapControl mc)
Crea un nuevo AreaListenerImpl. |
Method Summary | |
boolean |
cancelDrawing()
Condición para que se cancele el dibujado. |
java.awt.Cursor |
getCursor()
Devuelve el cursor de la herramienta. |
void |
pointFixed(MeasureEvent event)
Invocado cuando el usuario hace click y fija un punto de la polilinea |
void |
points(MeasureEvent event)
Invocado cuando el usuario mueve el ratón cambiando así la posición del último punto de la polilínea |
void |
polylineFinished(MeasureEvent event)
Invocado cuando el usuario hace doble click y da por finalizada el dibujado de la polilínea |
protected double |
returnArea(java.awt.geom.Point2D aux)
Calcula el área. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected MapControl mapCtrl
protected MeasureEvent event
Constructor Detail |
public AreaListenerImpl(MapControl mc)
mc
- MapControl.Method Detail |
public void points(MeasureEvent event)
PolylineListener
points
in interface PolylineListener
event
- MeasureEvent.PolylineListener.points(com.iver.cit.gvsig.fmap.tools.Events.MeasureEvent)
protected double returnArea(java.awt.geom.Point2D aux)
aux
- último punto.
public java.awt.Cursor getCursor()
ToolListener
getCursor
in interface ToolListener
ToolListener.getCursor()
public void pointFixed(MeasureEvent event)
PolylineListener
pointFixed
in interface PolylineListener
event
- MeasureEvent.PolylineListener.pointFixed(com.iver.cit.gvsig.fmap.tools.Events.MeasureEvent)
public void polylineFinished(MeasureEvent event)
PolylineListener
polylineFinished
in interface PolylineListener
event
- MeasureEvent.PolylineListener.polylineFinished(com.iver.cit.gvsig.fmap.tools.Events.MeasureEvent)
public boolean cancelDrawing()
ToolListener
cancelDrawing
in interface ToolListener
ToolListener.cancelDrawing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |