root / tags / v1_0_2_Build_916 / libraries / libCq CMS for java.old / src / org / cresques / filter / IStackManager.java @ 12327
History | View | Annotate | Download (2.65 KB)
1 | 5978 | nacho | /*
|
---|---|---|---|
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.filter; |
||
25 | |||
26 | import java.util.ArrayList; |
||
27 | |||
28 | import org.cresques.io.GeoRasterFile; |
||
29 | |||
30 | |||
31 | /**
|
||
32 | * Interfaz que deben implementar los Gestores de pila de filtros
|
||
33 | * @author Nacho Brodin (brodin_ign@gva.es)
|
||
34 | *
|
||
35 | */
|
||
36 | public interface IStackManager { |
||
37 | /**
|
||
38 | * Convierte cada filtro o elemento de un filtro de la pila en un String de la forma
|
||
39 | * elemento=valor
|
||
40 | * @return ArrayList donde cada elemento es una cadena
|
||
41 | */
|
||
42 | public ArrayList getStringsFromStack(); |
||
43 | |||
44 | /**
|
||
45 | * Convierte cada filtro o elemento de un filtro de la pila en un String de la forma
|
||
46 | * elemento=valor. Esta versi?n la implementan las extensiones que registren filtros
|
||
47 | * de forma externa para que pueda ser ejecutado por el RasterFilterStackManager.
|
||
48 | * @return ArrayList donde cada elemento es una cadena
|
||
49 | */
|
||
50 | public ArrayList getStringsFromStack(ArrayList filterList, RasterFilter rf); |
||
51 | |||
52 | /**
|
||
53 | * Crea una pila de filtros a partir de un Array de Strings. Cada elemento del array debe
|
||
54 | * tener la forma elemento=valor.
|
||
55 | * @param filters
|
||
56 | */
|
||
57 | public void createStackFromStrings(ArrayList f, Integer pos); |
||
58 | |||
59 | /**
|
||
60 | * Crea una pila de filtros a partir de un Array de Strings. Cada elemento del array debe
|
||
61 | * tener la forma elemento=valor. Esta versi?n la implementan las extensiones que registren filtros
|
||
62 | * de forma externa para que pueda ser ejecutado por el RasterFilterStackManager.
|
||
63 | * @param fil Cadena que representa el identificador del elemento
|
||
64 | * @param filters Lista de filtros
|
||
65 | * @param grfList Lista de geoRasterFile
|
||
66 | * @param filteri N?mero de filtro de la lista analizado
|
||
67 | * @return filteri modificado
|
||
68 | */
|
||
69 | public int createStackFromStrings(ArrayList filters, String fil, GeoRasterFile[] grfList, int filteri); |
||
70 | } |