Statistics
| Revision:

root / trunk / libraries / libRaster / src / org / gvsig / raster / grid / filter / IRasterFilterListManager.java @ 14134

History | View | Annotate | Download (2.7 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2006 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 */
19
package org.gvsig.raster.grid.filter;
20

    
21
import java.util.ArrayList;
22

    
23
import org.gvsig.raster.dataset.Params;
24

    
25

    
26
/**
27
 * Interfaz que deben implementar los Gestores de pila de filtros
28
 * @author Nacho Brodin (nachobrodin@gmail.com)
29
 *
30
 */
31
public interface IRasterFilterListManager {
32

    
33
                /**
34
                 * Convierte cada filtro o elemento de un filtro de la pila en un String de la forma
35
                 * elemento=valor. Esta versi?n la implementan las extensiones que registren filtros
36
                 * de forma externa para que pueda ser ejecutado por el RasterFilterListManager.
37
                 * @param filterList Lista de cadenas de la forma variable=valor a la que se a?adiran las
38
                 * cadenas que generen el gestor de filtros actual.
39
                 * @param rf Filtro analizado. Cada gestor de filtros comprobar? si el filtro pasado
40
                 * es gestionado por el y si lo hace introduce las cadenas correspondientes.
41
                 * @return ArrayList donde cada elemento es una cadena
42
                 */
43
                public ArrayList getStringsFromFilterList(ArrayList filterList, RasterFilter rf);
44

    
45
                /**
46
                 * Crea una pila de filtros a partir de un Array de Strings. Cada elemento del array debe
47
                 * tener la forma elemento=valor. Esta versi?n la implementan las extensiones que registren filtros
48
                 * de forma externa para que pueda ser ejecutado por el RasterFilterListManager.
49
                 * @param filters        Lista de filtros
50
                 * @param fil Cadena que representa el identificador del elemento
51
                 * @param filteri N?mero de filtro de la lista analizado
52
                 * @return filteri modificado
53
                 */
54
                public int createFilterListFromStrings(ArrayList filters, String fil, int filteri);
55

    
56
                /**
57
                 * Devuelve la lista de filtros que puede manejar un RasterFilterListManager
58
                 * @return
59
                 */
60
                public ArrayList getRasterFilterList();
61

    
62
                /**
63
                 * A?ade un filtro
64
                 * @param classFilter Clase del filtro a a?adir
65
                 * @param params Par?metros de carga
66
                 */
67
                public void addFilter(Class classFilter, Params params);
68
}