public class ClippingPanelListener extends Object implements ActionListener, RectangleListener, ButtonsPanelListener, CoordinatesListener, DataInputContainerListener, IProcessActions
ClippingPanelListener
es una clase donde se recogerán y
tratarán todos los eventos del panel de recorteConstructor 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(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(EventObject e)
Evento que se dispara cuando cambia el valor del componente.
|
boolean |
activeButtons(Point2D ulPx,
Point2D lrPx,
Point2D ulWc,
Point2D lrWc) |
boolean |
cancelDrawing()
Determines if the drawing process that this tool executes on the
MapControl
instance could be canceled or not. |
void |
end(Object params)
Acciones de finalización del proceso
|
Cursor |
getCursor() |
FLyrRaster |
getFLayer()
Obtener la capa de un raster.
|
Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
String |
getLastTool()
Obtiene la ultima herramienta seleccionada antes de cargar el recorte
|
MapControl |
getMapControl()
Obtiene el
MapControl de gvSIG |
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(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(Dimension dim)
dim
- public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void actionButtonPressed(ButtonsPanelEvent e)
DefaultButtonsPanel
actionButtonPressed
in interface ButtonsPanelListener
public boolean cancelDrawing()
ToolListener
Determines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
cancelDrawing
in interface ToolListener
true
if is cancellable; otherwise returns false
public Cursor getCursor()
public void actionValueChanged(CoordinatesEvent e)
CoordinatesListener
actionValueChanged
in interface CoordinatesListener
public void actionValueChanged(EventObject e)
DataInputContainerListener
actionValueChanged
in interface DataInputContainerListener
public void setEnableValueChangedEvent(boolean enableValueChangedEvent)
enableValueChangedEvent
- public void end(Object params)
IProcessActions
end
in interface IProcessActions
public FLyrRaster getFLayer()
public String getLastTool()
public String getViewName()
public void setLayer(FLyrRaster fLayer)
fLayer
- public void selectToolButton()
public MapControl getMapControl()
MapControl
de gvSIGMapControl
public void rectangle(EnvelopeEvent event) throws BehaviorException
RectangleListener
Called 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 RectangleListener
event
- mouse event and information about the rectangle definedBehaviorException
- will be thrown when fails the process of this toolpublic void interrupted()
IProcessActions
interrupted
in interface IProcessActions
public Image getImageCursor()
ToolListener
Gets the Cursor
associated to this tool.
getImageCursor
in interface ToolListener
public void updateProgress(int current, int total)
IProcessActions
updateProgress
in interface IProcessActions