public class DrawMouseViewListener extends java.lang.Object implements PolylineListener, PointListener
| Constructor and Description |
|---|
DrawMouseViewListener(ROIDataModel roiManagerPanel) |
| 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. |
java.awt.Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
void |
point(PointEvent event)
Called when one click is pressed on the associated
MapControl, or the location of the cursor
of the mouse has changed on it. |
void |
pointDoubleClick(PointEvent event)
Called when a double click is pressed on the associated
MapControl. |
void |
pointFixed(MeasureEvent event)
Called when user executes a mouse click and selects a vertex of the polyline.
|
void |
points(MeasureEvent event)
Called when user moves the mouse after selecting a vertex of the polyline.
|
void |
polylineFinished(MeasureEvent event)
Called when user executes a double click with the mouse, finishing the
drawn of the polyline.
|
public DrawMouseViewListener(ROIDataModel roiManagerPanel)
public void pointFixed(MeasureEvent event) throws BehaviorException
PolylineListenerCalled when user executes a mouse click and selects a vertex of the polyline.
pointFixed in interface PolylineListenerevent - information about the mouse event, and geometry data of the polylineBehaviorException - will be thrown when fails the process of this toolpublic void points(MeasureEvent event) throws BehaviorException
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 PolylineListenerevent - information about the mouse event, and geometry data of the polylineBehaviorException - will be thrown when fails the process of this toolpublic void polylineFinished(MeasureEvent event) throws BehaviorException
PolylineListenerCalled when user executes a double click with the mouse, finishing the drawn of the polyline.
All features of the active and vector layers of the associated MapControl object that
their area intersect with the polygonal area defined in the event, will be selected.
polylineFinished in interface PolylineListenerevent - information about the mouse event, and geometry data of the polylineBehaviorException - will be thrown when fails the process of this toolpublic 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 falsepublic java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
getImageCursor in interface ToolListenerpublic void point(PointEvent event) throws BehaviorException
PointListenerCalled when one click is pressed on the associated MapControl, or the location of the cursor
of the mouse has changed on it.
point in interface PointListenerevent - mouse event with the coordinates of the point selected on the associated MapControlBehaviorException - will be thrown when fails the process of this toolpublic void pointDoubleClick(PointEvent event) throws BehaviorException
PointListenerCalled when a double click is pressed on the associated MapControl.
pointDoubleClick in interface PointListenerevent - mouse event and the coordinates of the point selected on the associated MapControlBehaviorException - will be thrown when fails the process of this tool