public class CircleMeasureListener extends AbstractCircleListener
Listener for tools that measure using a circular area, displaying its radius at the status bar of the application's main frame.
CircleListener| Constructor and Description |
|---|
CircleMeasureListener(MapControl mc)
Creates a new listener for measure circular areas.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelDrawing()
Determines if the drawing process that this tool executes on the
MapControl
instance could be canceled or not. |
void |
circle(MeasureEvent event)
Called when user defines a circular area.
|
java.awt.Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
circleFinishedpublic CircleMeasureListener(MapControl mc)
Creates a new listener for measure circular areas.
mc - the MapControl object where the measures are madepublic void circle(MeasureEvent event) throws BehaviorException
CircleListenerCalled when user defines a circular area.
event - information about the mouse event, and geometry data related with the operation doneBehaviorException - will be thrown when fails the process of this toolpublic java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
public boolean cancelDrawing()
ToolListenerDetermines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
true if is cancellable; otherwise returns false