public class MeasureListener extends MeasureListenerImpl
Listener for calculating distances using vertexes of a polyline, defined in
the associated MapControl object, and displaying that
information at the status bar of the application's main frame.
Calculates and displays:
MeasureListenerImplmapCtrl| Constructor and Description |
|---|
MeasureListener(MapControl mc)
Creates a new listener for calculating distances using points of a
polyline.
|
| 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, pointFixed, polylineFinishedpublic MeasureListener(MapControl mc)
Creates a new listener for calculating distances using points of a polyline.
mc - the MapControl where is calculated the lengthpublic 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 MeasureListenerImplevent - information about the mouse event, and geometry data of the polyline