public class FilterListener extends Object implements ActionListener, TreeListComponentListener, TreeListChangeListener, PropertiesComponentListener, FilterUIListener, IProcessActions
FilterListener
es la clase donde se procesará gran parte del
código que controla el panel para el manejo de un layer en la aplicación de
filtros.Constructor and Description |
---|
FilterListener(FilterPanel filterPanel)
Construye un FilterListener especificando el FilterPanel asociado
|
Modifier and Type | Method and Description |
---|---|
void |
accept()
Que acciones se ejecutaran al haber presionado el botón aceptar o aplicar
|
void |
actionChangeProperties(EventObject e) |
void |
actionChangeSelection(TreeListChangeEvent e) |
void |
actionPerformed(ActionEvent e) |
void |
actionValuesCompleted(EventObject e)
Este evento es lanzado al terminar de rellenar todos los campos
del interfaz.
|
void |
addNewParam(String name,
Params params,
Class<?> classFilter)
Añadir un nuevo Params a la lista de Params que podemos manejar.
|
ArrayList<ParamStruct> |
applyFilters(FLyrRaster layerRaster)
Aqui se seleccionan que filtros se van a aplicar y se devuelven en forma
de ArrayList tanto para el dibujado como cuando aceptan o aplican el panel.
|
void |
changePanel(String filter)
Cambiar el panel de propiedades central por el nuevo panel, segun el filtro
seleccionado que se pasa por parámetro.
|
void |
drawImage(FLyrRaster rendering) |
void |
elementAdded(TreeListEvent e)
Este método es ejecutado cuando se inserta un nuevo elemento en la lista
|
void |
elementMoved(TreeListEvent e)
Este método es ejecutado cuando se mueve un elemento de la lista
|
void |
elementRemoved(TreeListEvent e)
Este método es ejecutado cuando se elimina un elemento de la lista
|
void |
end(Object param)
Acciones de finalización del proceso
|
FilterPanel |
getFilterPanel()
Devuelve el FilterPanel asociado al FilterListener
|
ArrayList<ParamStruct> |
getParamsList() |
void |
interrupted()
El proceso comunica que ha sido interrumpido
|
void |
loadLayerInToc(String fileName)
Acciones que se realizan al finalizar de crear los recortes de imagen.
|
void |
refreshDataProperties()
Asignamos los valores del PropertiesComponent al Params seleccionado
|
public FilterListener(FilterPanel filterPanel)
filterDialog
- public void refreshDataProperties()
public void changePanel(String filter)
filter
- public void addNewParam(String name, Params params, Class<?> classFilter)
name
- params
- classFilter
- public void actionChangeProperties(EventObject e)
actionChangeProperties
in interface PropertiesComponentListener
public void actionChangeSelection(TreeListChangeEvent e)
actionChangeSelection
in interface TreeListChangeListener
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void elementAdded(TreeListEvent e)
TreeListComponentListener
elementAdded
in interface TreeListComponentListener
e
- TreeListEventpublic void elementMoved(TreeListEvent e)
TreeListComponentListener
elementMoved
in interface TreeListComponentListener
e
- TreeListEventpublic void elementRemoved(TreeListEvent e)
TreeListComponentListener
elementRemoved
in interface TreeListComponentListener
e
- TreeListEventpublic ArrayList<ParamStruct> getParamsList()
public ArrayList<ParamStruct> applyFilters(FLyrRaster layerRaster)
layerRaster
- public void drawImage(FLyrRaster rendering)
public void accept()
public FilterPanel getFilterPanel()
public void loadLayerInToc(String fileName)
public void actionValuesCompleted(EventObject e)
FilterUIListener
actionValuesCompleted
in interface FilterUIListener
public void end(Object param)
IProcessActions
end
in interface IProcessActions
public void interrupted()
IProcessActions
interrupted
in interface IProcessActions