Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / operations / strategies / ShapeInfo.java @ 1100

History | View | Annotate | Download (2.44 KB)

1 1100 fjp
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 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
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41 308 fernando
package com.iver.cit.gvsig.fmap.operations.strategies;
42
43
import java.awt.geom.Rectangle2D;
44
45
46
/**
47
 * Estructura de datos con la informaci?n relativa a las geometr?as de una
48
 * fuente de datos necesaria para acelerar el procesado de la capa
49
 */
50
public interface ShapeInfo {
51 1034 vcaballero
        /**
52
         * A?ade al final de la estructura de datos la informaci?n de una geometr?a
53
         *
54
         * @param boundingBox Extent del shape.
55
         * @param type Tipo de shape.
56
         */
57
        void addShapeInfo(Rectangle2D boundingBox, int type);
58 308 fernando
59 1034 vcaballero
        /**
60
         * Establece en la posici?n index-?sima de la estructura de datos la
61
         * informaci?n de una geometr?a
62
         *
63
         * @param index ?ndice.
64
         * @param boundingBox Extent del shape.
65
         * @param type Tipo de shape.
66
         *
67
         * @throws ArrayIndexOutOfBoundsException Si se intenta establecer la
68
         *                    informaci?n para una geometr?a que no existe
69
         */
70
        void setShapeInfo(int index, Rectangle2D boundingBox, int type)
71
                throws ArrayIndexOutOfBoundsException;
72 308 fernando
73 1034 vcaballero
        /**
74
         * Obtiene el bounding box de la geometr?a index-?sima
75
         *
76
         * @param index ?ndice de la geometr?a.
77
         *
78
         * @return Extent de la geometr?a.
79
         */
80
        Rectangle2D getBoundingBox(int index);
81 308 fernando
82 1034 vcaballero
        /**
83
         * Obtiene el tipo de la geometr?a index-?sima
84
         *
85
         * @param index ?ndice.
86
         *
87
         * @return Tipo de geometr?a.
88
         */
89
        int getType(int index);
90 308 fernando
}