Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / rendering / indexes / Index.java @ 680

History | View | Annotate | Download (1.05 KB)

1
/* Generated by Together */
2
package com.iver.cit.gvsig.fmap.rendering.indexes;
3

    
4
import java.awt.geom.Rectangle2D;
5

    
6
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
7

    
8

    
9
/**
10
 * Interfaz que define el comportamiento de una estructura de datos de ?ndice
11
 */
12
public interface Index {
13
        /**
14
         * Dado un rect?ngulo en coordenadas del mapa se devuelve un array de
15
         * indices de los registros cuyas features est?n contenidas o intersecten
16
         * en dicho rect?ngulo. En caso de que ninguna est? contenida se devuelve
17
         * un array vac?o. Si se invoca esta funci?n pero no hay ning?n ?ndice
18
         * definido se lanzar? una IndexNotExistsException
19
         *
20
         * @param rect DOCUMENT ME!
21
         *
22
         * @return DOCUMENT ME!
23
         *
24
         * @throws DriverIOException DOCUMENT ME!
25
         * @throws IndexNotExistsException DOCUMENT ME!
26
         */
27
        int[] getRecordIndexes(Rectangle2D rect)
28
                throws DriverIOException, IndexNotExistsException;
29

    
30
        /**
31
         * Abre el fichero de ?ndices
32
         *
33
         * @param file DOCUMENT ME!
34
         */
35
        void openIndexFile(String file);
36

    
37
        /**
38
         * Cierra el fichero de ?ndices
39
         */
40
        void closeIndexFile();
41
}