public class SaveRasterListenerImpl extends java.lang.Object implements RectangleListener
| Modifier and Type | Field and Description |
|---|---|
protected MapControl |
mapCtrl |
protected java.awt.geom.Rectangle2D |
pixelRect |
protected Envelope |
rect |
| Constructor and Description |
|---|
SaveRasterListenerImpl(MapControl mapCtrl)
Crea un nuevo RectangleListenerImpl.
|
| 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 |
rectangle(EnvelopeEvent event)
Called when user executes a double click with the mouse, finishing the
drawn of the rectangle.
|
protected MapControl mapCtrl
protected java.awt.geom.Rectangle2D pixelRect
protected Envelope rect
public SaveRasterListenerImpl(MapControl mapCtrl)
mapCtrl - MapControl.public void rectangle(EnvelopeEvent event)
RectangleListenerCalled when user executes a double click with the mouse, finishing the drawn of the rectangle.
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.
rectangle in interface RectangleListenerevent - mouse event and information about the rectangle definedcom.iver.cit.gvsig.fmap.tools.Listeners.RectangleListener#rectangle(com.iver.cit.gvsig.fmap.tools.Events.RectangleEvent)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 falsecom.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()public java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
getImageCursor in interface ToolListener