svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / operations / strategies / Strategy.java @ 235
History | View | Annotate | Download (2.83 KB)
1 |
/* Generated by Together */
|
---|---|
2 |
package com.iver.cit.gvsig.fmap.operations.strategies; |
3 |
|
4 |
import com.iver.cit.gvsig.fmap.ViewPort; |
5 |
import com.iver.cit.gvsig.fmap.core.FGeometry; |
6 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
7 |
import com.iver.cit.gvsig.fmap.operations.QueriedPoint; |
8 |
|
9 |
import java.awt.Graphics2D; |
10 |
import java.awt.geom.Rectangle2D; |
11 |
import java.awt.image.BufferedImage; |
12 |
|
13 |
import java.util.BitSet; |
14 |
|
15 |
|
16 |
/**
|
17 |
* DOCUMENT ME!
|
18 |
*
|
19 |
* @author $author$
|
20 |
*/
|
21 |
public interface Strategy { |
22 |
/**
|
23 |
* Dibuja la capa vectorial asociada al Strategy en la imagen que se pasa
|
24 |
* como par?metro.
|
25 |
*
|
26 |
* @param image DOCUMENT ME!
|
27 |
* @param g DOCUMENT ME!
|
28 |
* @param viewPort DOCUMENT ME!
|
29 |
*
|
30 |
* @throws DriverIOException DOCUMENT ME!
|
31 |
*/
|
32 |
void draw(BufferedImage image, Graphics2D g, ViewPort viewPort) |
33 |
throws DriverIOException;
|
34 |
|
35 |
/**
|
36 |
* Recorre las features de la capa vectorial invocando el m?todo visit del
|
37 |
* visitador que se pasa como par?metro, que es el que realizar? la
|
38 |
* operaci?n relacionada con la geometry
|
39 |
*
|
40 |
* @param visitor DOCUMENT ME!
|
41 |
* @param subset DOCUMENT ME!
|
42 |
*
|
43 |
* @throws DriverIOException
|
44 |
*/
|
45 |
void process(FeatureVisitor visitor, BitSet subset) |
46 |
throws DriverIOException;
|
47 |
|
48 |
/**
|
49 |
* Recorre las features de la capa vectorial invocando el m?todo visit del
|
50 |
* visitador que se pasa como par?metro, que es el que realizar? la
|
51 |
* operaci?n relacionada con la geometry
|
52 |
*
|
53 |
* @param visitor DOCUMENT ME!
|
54 |
*
|
55 |
* @throws DriverIOException
|
56 |
*/
|
57 |
void process(FeatureVisitor visitor) throws DriverIOException; |
58 |
|
59 |
/**
|
60 |
* Realiza una query por punto en coordenadas del mundo real de la capa
|
61 |
* vectorial asociada a la estrategia
|
62 |
*
|
63 |
* @param p DOCUMENT ME!
|
64 |
* @param tolerance DOCUMENT ME!
|
65 |
*
|
66 |
* @return DOCUMENT ME!
|
67 |
*/
|
68 |
BitSet queryByPoint(QueriedPoint p, double tolerance) throws DriverIOException; |
69 |
|
70 |
/**
|
71 |
* Realiza una query por rect?ngulo en coordenadas del mundo real de la
|
72 |
* capa vectorial asociada a la estrategia
|
73 |
* @param rect DOCUMENT ME!
|
74 |
* @return DOCUMENT ME!
|
75 |
*/
|
76 |
BitSet queryByRect(Rectangle2D rect) throws DriverIOException; |
77 |
|
78 |
/**
|
79 |
* Realiza una query por FGeometry en coordenadas del mundo real de la capa
|
80 |
* vectorial asociada a la estrategia
|
81 |
*
|
82 |
* @param g DOCUMENT ME!
|
83 |
* @param relationship DOCUMENT ME!
|
84 |
*
|
85 |
* @return DOCUMENT ME!
|
86 |
*/
|
87 |
BitSet queryByShape(FGeometry g, int relationship)throws DriverIOException; |
88 |
|
89 |
/**
|
90 |
* Obtiene el rect?ngulo m?nimo que contiene todas las features
|
91 |
* seleccionadas o null si no hay ninguna seleccionada
|
92 |
*
|
93 |
* @return DOCUMENT ME!
|
94 |
*/
|
95 |
Rectangle2D getSelectionBounds();
|
96 |
|
97 |
/**
|
98 |
* Crea un ?ndice sobre la capa vectorial de la estrategia
|
99 |
*/
|
100 |
void createIndex();
|
101 |
} |