gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.api / src / main / java / org / gvsig / fmap / dal / coverage / grid / RasterFilterListManager.java @ 2443
History | View | Annotate | Download (3.86 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.fmap.dal.coverage.grid; |
23 |
|
24 |
import java.util.List; |
25 |
|
26 |
import org.gvsig.fmap.dal.coverage.datastruct.Params; |
27 |
import org.gvsig.fmap.dal.coverage.exception.FilterTypeException; |
28 |
|
29 |
|
30 |
/**
|
31 |
* Interfaz que deben implementar los Gestores de pila de filtros
|
32 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
33 |
*
|
34 |
*/
|
35 |
public interface RasterFilterListManager { |
36 |
|
37 |
/**
|
38 |
* Gets the ID of this manager with which it was registered
|
39 |
* @return
|
40 |
*/
|
41 |
public String getManagerID(); |
42 |
|
43 |
/**
|
44 |
* Convierte cada filtro o elemento de un filtro de la pila en un String de la forma
|
45 |
* elemento=valor. Esta versi?n la implementan las extensiones que registren filtros
|
46 |
* de forma externa para que pueda ser ejecutado por el RasterFilterListManager.
|
47 |
* @param filterList Lista de cadenas de la forma variable=valor a la que se a?adiran las
|
48 |
* cadenas que generen el gestor de filtros actual.
|
49 |
* @param rf Filtro analizado. Cada gestor de filtros comprobar? si el filtro pasado
|
50 |
* es gestionado por el y si lo hace introduce las cadenas correspondientes.
|
51 |
* @return ArrayList donde cada elemento es una cadena
|
52 |
*/
|
53 |
//public List<String> getStringsFromFilterList(List<String> filterList, RasterFilter rf);
|
54 |
|
55 |
/**
|
56 |
* Crea una pila de filtros a partir de un Array de Strings. Cada elemento del array debe
|
57 |
* tener la forma elemento=valor. Esta versi?n la implementan las extensiones que registren filtros
|
58 |
* de forma externa para que pueda ser ejecutado por el RasterFilterListManager.
|
59 |
* @param filters Lista de filtros
|
60 |
* @param fil Cadena que representa el identificador del elemento
|
61 |
* @param filteri N?mero de filtro de la lista analizado
|
62 |
* @return filteri modificado
|
63 |
*/
|
64 |
//public int createFilterListFromStrings(List<String> filters, String fil, int filteri) throws FilterTypeException;
|
65 |
|
66 |
/**
|
67 |
* Devuelve la lista de filtros que puede manejar un RasterFilterListManager
|
68 |
* @return
|
69 |
*/
|
70 |
public List<Class<?>> getRasterFilterList(); |
71 |
|
72 |
/**
|
73 |
* A?ade un filtro
|
74 |
* @param classFilter Clase del filtro a a?adir
|
75 |
* @param params Par?metros de carga
|
76 |
*/
|
77 |
public void addFilter(Class<?> classFilter, Params params) throws FilterTypeException; |
78 |
|
79 |
/**
|
80 |
* Obtiene la lista de filtros
|
81 |
* @return RasterFilterList
|
82 |
*/
|
83 |
public RasterFilterList getFilterList();
|
84 |
|
85 |
/**
|
86 |
* Sets the filter list
|
87 |
* @return RasterFilterList
|
88 |
*/
|
89 |
public void setFilterList(RasterFilterList filterList); |
90 |
|
91 |
/**
|
92 |
* Adds a filter in a specific manager
|
93 |
* @param params Par?metros de carga
|
94 |
*/
|
95 |
public void addFilter(Params params) throws FilterTypeException; |
96 |
|
97 |
/**
|
98 |
* Builds a filter of this type
|
99 |
* @param params
|
100 |
* @return
|
101 |
* @throws FilterTypeException
|
102 |
*/
|
103 |
public RasterFilter createFilter(Params params) throws FilterTypeException; |
104 |
|
105 |
/**
|
106 |
* Returns true if this manager contains a filter with the selected ID
|
107 |
* @param id
|
108 |
* @return
|
109 |
*/
|
110 |
public Class<?> getFilterClassByID(String id); |
111 |
|
112 |
/**
|
113 |
* Returns true if the data type selected is supported and false if not
|
114 |
* @param dataType
|
115 |
* @return
|
116 |
*/
|
117 |
public boolean isDataTypeSupported(int dataType); |
118 |
} |