public class AreaListener extends AreaListenerImpl
Listener for calculating the area of a polygon, defined in the associated MapControl
object.
Moves the extent of the associated MapControl object
according the movement between the initial and final points of the line determined by the movement
dragged with the third button of the mouse.
Updates the status bar of the main frame of the application with the current area.
AreaListenerImplevent, mapCtrl| Constructor and Description |
|---|
AreaListener(MapControl mc)
Creates a new listener for calculating the area of a polygon and displaying it at the status bar
of the main frame of the application.
|
| Modifier and Type | Method and Description |
|---|---|
void |
points(MeasureEvent event)
Called when user moves the mouse after selecting a vertex of the polyline.
|
cancelDrawing, getImageCursor, main, pointFixed, polylineFinished, returnArea, returnCoordsArea, returnGeoCAreapublic AreaListener(MapControl mc)
Creates a new listener for calculating the area of a polygon and displaying it at the status bar of the main frame of the application.
mc - the MapControl where is calculated the areapublic void points(MeasureEvent event)
PolylineListenerCalled when user moves the mouse after selecting a vertex of the polyline.
Each kind of polyline listener calculates different information with the data of the
MeasureEvent, according its nature.
points in interface PolylineListenerpoints in class AreaListenerImplevent - information about the mouse event, and geometry data of the polyline