public class CircleMeasureListener extends java.lang.Object implements CircleListener
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. |
public 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.
circle in interface CircleListenerevent - 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.
getImageCursor in interface ToolListenerpublic boolean cancelDrawing()
ToolListenerDetermines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
cancelDrawing in interface ToolListenertrue if is cancellable; otherwise returns false