public class ClippingPanelListener extends java.lang.Object implements java.awt.event.ActionListener, RectangleListener, ButtonsPanelListener, CoordinatesListener, DataInputContainerListener, IProcessActions
ClippingPanelListener es una clase donde se recogerán y
tratarán todos los eventos del panel de recorte| Constructor and Description |
|---|
ClippingPanelListener(ClippingPanel clippingPanel)
Crea un nuevo
ClippingPanelListener con el
ClippingPanelListener asociado |
| Modifier and Type | Method and Description |
|---|---|
void |
actionButtonPressed(ButtonsPanelEvent e)
Invocación de los eventos de la ventana de
DefaultButtonsPanel |
void |
actionPerformed(java.awt.event.ActionEvent e)
Método que se invoca cuando se disparan los eventos de los botones de
extensión completa o de seleccion de extensión con el ratón
|
void |
actionValueChanged(CoordinatesEvent e)
Evento que se dispara cuando cambia el valor del componente.
|
void |
actionValueChanged(java.util.EventObject e)
Evento que se dispara cuando cambia el valor del componente.
|
boolean |
activeButtons(java.awt.geom.Point2D ulPx,
java.awt.geom.Point2D lrPx,
java.awt.geom.Point2D ulWc,
java.awt.geom.Point2D lrWc) |
boolean |
cancelDrawing()
Determines if the drawing process that this tool executes on the
MapControl
instance could be canceled or not. |
void |
end(java.lang.Object params)
Acciones de finalización del proceso
|
java.awt.Cursor |
getCursor() |
FLyrRaster |
getFLayer()
Obtener la capa de un raster.
|
java.awt.Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
java.lang.String |
getLastTool()
Obtiene la ultima herramienta seleccionada antes de cargar el recorte
|
MapControl |
getMapControl()
Obtiene el
MapControl de gvSIG |
java.lang.String |
getViewName()
Obtiene el nombre de la vista
|
void |
interrupted()
El proceso comunica que ha sido interrumpido
|
void |
rectangle(EnvelopeEvent event)
Called when user executes a double click with the mouse, finishing the
drawn of the rectangle.
|
void |
selectToolButton()
Acciones que se realizan para seleccionar la tool CutRaster
|
void |
setData(ClippingData data)
Asigna el modelo de datos
|
void |
setDimension(java.awt.Dimension dim)
Asigna la dimensión del raster
|
void |
setEnableValueChangedEvent(boolean enableValueChangedEvent)
Asigna el valor para la activación y desactivación del evento de cambio de valor en
las cajas de texto.
|
void |
setLayer(FLyrRaster fLayer)
Establecer la capa para usarla en el recorte
|
void |
updateProgress(int current,
int total)
A process can report the progress of the task
|
public ClippingPanelListener(ClippingPanel clippingPanel)
ClippingPanelListener con el
ClippingPanelListener asociadopanel - public void setData(ClippingData data)
data - public void setDimension(java.awt.Dimension dim)
dim - public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic boolean activeButtons(java.awt.geom.Point2D ulPx,
java.awt.geom.Point2D lrPx,
java.awt.geom.Point2D ulWc,
java.awt.geom.Point2D lrWc)
public void actionButtonPressed(ButtonsPanelEvent e)
DefaultButtonsPanelactionButtonPressed in interface ButtonsPanelListenerpublic 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.Cursor getCursor()
public void actionValueChanged(CoordinatesEvent e)
CoordinatesListeneractionValueChanged in interface CoordinatesListenerpublic void actionValueChanged(java.util.EventObject e)
DataInputContainerListeneractionValueChanged in interface DataInputContainerListenerpublic void setEnableValueChangedEvent(boolean enableValueChangedEvent)
enableValueChangedEvent - public void end(java.lang.Object params)
IProcessActionsend in interface IProcessActionspublic FLyrRaster getFLayer()
public java.lang.String getLastTool()
public java.lang.String getViewName()
public void setLayer(FLyrRaster fLayer)
fLayer - public void selectToolButton()
public MapControl getMapControl()
MapControl de gvSIGMapControlpublic void rectangle(EnvelopeEvent event) throws BehaviorException
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 definedBehaviorException - will be thrown when fails the process of this toolpublic void interrupted()
IProcessActionsinterrupted in interface IProcessActionspublic java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
getImageCursor in interface ToolListenerpublic void updateProgress(int current,
int total)
IProcessActionsupdateProgress in interface IProcessActions