public class SelectImageListImpl extends java.lang.Object implements PointListener
Listener to select the upper layer with raster data, that has information in the associated MapControl object, down
the position selected by the mouse.
| Modifier and Type | Field and Description |
|---|---|
protected MapControl |
mapCtrl
Reference to the
MapControl object that uses. |
protected java.awt.geom.Point2D |
wcPoint
World equivalent coordinates of the point 2D
|
| Constructor and Description |
|---|
SelectImageListImpl(MapControl mapCtrl)
Creates a new
SelectImageListenerImpl object. |
| 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.Cursor |
getCursor() |
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. |
protected MapControl mapCtrl
MapControl object that uses.protected java.awt.geom.Point2D wcPoint
public SelectImageListImpl(MapControl mapCtrl)
Creates a new SelectImageListenerImpl object.
mapCtrl - the MapControl where are stored the layerspublic void point(PointEvent event)
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 MapControlpublic java.awt.Cursor getCursor()
public 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 void pointDoubleClick(PointEvent event)
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 MapControlpublic java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
getImageCursor in interface ToolListener