svn-gvsig-desktop / trunk / libraries / libCq CMS for java.old / src / org / cresques / io / raster / IStackManager.java @ 4578
History | View | Annotate | Download (2.54 KB)
1 |
/*
|
---|---|
2 |
* Cresques Mapping Suite. Graphic Library for constructing mapping applications.
|
3 |
*
|
4 |
* Copyright (C) 2004-5.
|
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
19 |
*
|
20 |
* For more information, contact:
|
21 |
*
|
22 |
* cresques@gmail.com
|
23 |
*/
|
24 |
package org.cresques.io.raster; |
25 |
|
26 |
import java.util.ArrayList; |
27 |
|
28 |
|
29 |
/**
|
30 |
* Interfaz que deben implementar los Gestores de pila de filtros
|
31 |
* @author Nacho Brodin (brodin_ign@gva.es)
|
32 |
*
|
33 |
*/
|
34 |
public interface IStackManager { |
35 |
/**
|
36 |
* Convierte cada filtro o elemento de un filtro de la pila en un String de la forma
|
37 |
* elemento=valor
|
38 |
* @return ArrayList donde cada elemento es una cadena
|
39 |
*/
|
40 |
public ArrayList getStringsFromStack(); |
41 |
|
42 |
/**
|
43 |
* Convierte cada filtro o elemento de un filtro de la pila en un String de la forma
|
44 |
* elemento=valor. Esta versi?n la implementan las extensiones que registren filtros
|
45 |
* de forma externa para que pueda ser ejecutado por el RasterFilterStackManager.
|
46 |
* @return ArrayList donde cada elemento es una cadena
|
47 |
*/
|
48 |
public ArrayList getStringsFromStack(ArrayList filterList, RasterFilter rf); |
49 |
|
50 |
/**
|
51 |
* Crea una pila de filtros a partir de un Array de Strings. Cada elemento del array debe
|
52 |
* tener la forma elemento=valor.
|
53 |
* @param filters
|
54 |
*/
|
55 |
public void createStackFromStrings(ArrayList f, Integer pos); |
56 |
|
57 |
/**
|
58 |
* Crea una pila de filtros a partir de un Array de Strings. Cada elemento del array debe
|
59 |
* tener la forma elemento=valor. Esta versi?n la implementan las extensiones que registren filtros
|
60 |
* de forma externa para que pueda ser ejecutado por el RasterFilterStackManager.
|
61 |
* @param fil Cadena que representa el identificador del elemento
|
62 |
* @param filters Lista de filtros
|
63 |
* @param filteri N?mero de filtro de la lista analizado
|
64 |
* @return filteri modificado
|
65 |
*/
|
66 |
public int createStackFromStrings(String fil, ArrayList filters, int filteri); |
67 |
} |