Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/Strategy.java
Strategy.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
import javax.print.attribute.PrintRequestAttributeSet; |
50 | 50 |
|
51 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
51 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
52 |
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileReadException; |
|
53 |
import com.iver.cit.gvsig.exceptions.visitors.VisitorException; |
|
52 | 54 |
import com.iver.cit.gvsig.fmap.ViewPort; |
53 | 55 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
54 | 56 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
... | ... | |
68 | 70 |
* @param g |
69 | 71 |
* @param viewPort |
70 | 72 |
* @param cancel |
71 |
* |
|
72 |
* @throws DriverException |
|
73 |
* @throws ReadDriverException TODO |
|
73 | 74 |
*/ |
74 | 75 |
void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, |
75 |
Cancellable cancel) throws DriverException; |
|
76 |
Cancellable cancel) throws ReadDriverException;
|
|
76 | 77 |
|
77 | 78 |
/** |
78 | 79 |
* Dibujar? esta Shape en el Graphics con el s?mbolo que se pasa como |
... | ... | |
83 | 84 |
* @param g |
84 | 85 |
* @param viewPort |
85 | 86 |
* @param cancel |
86 |
* |
|
87 |
* @throws DriverException |
|
87 |
* @throws ReadDriverException TODO |
|
88 | 88 |
*/ |
89 | 89 |
void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, PrintRequestAttributeSet properties) |
90 |
throws DriverException; |
|
90 |
throws ReadDriverException;
|
|
91 | 91 |
|
92 | 92 |
|
93 | 93 |
/** |
... | ... | |
95 | 95 |
* @param visitor |
96 | 96 |
* @param subset |
97 | 97 |
* @param cancel |
98 |
* @throws DriverException |
|
99 |
* @throws VisitException |
|
98 |
* @throws ReadDriverException TODO |
|
99 |
* @throws ExpansionFileReadException |
|
100 |
* @throws VisitorException TODO |
|
100 | 101 |
*/ |
101 | 102 |
void process(FeatureVisitor visitor, BitSet subset, CancellableMonitorable cancel) |
102 |
throws DriverException, VisitException;
|
|
103 |
throws ReadDriverException, ExpansionFileReadException, VisitorException;
|
|
103 | 104 |
/** |
104 | 105 |
* Recorre las features de la capa vectorial invocando el m?todo visit del |
105 | 106 |
* visitador que se pasa como par?metro, que es el que realizar? la |
... | ... | |
107 | 108 |
* |
108 | 109 |
* @param visitor |
109 | 110 |
* @param subset |
110 |
* |
|
111 |
* @throws DriverException |
|
112 |
* @throws VisitException Si el visitor lanza una excepci?n al procesar una |
|
113 |
* geometr?a de la capa |
|
111 |
* @throws ReadDriverException TODO |
|
112 |
* @throws ExpansionFileReadException |
|
113 |
* @throws VisitorException TODO |
|
114 | 114 |
*/ |
115 | 115 |
void process(FeatureVisitor visitor, BitSet subset) |
116 |
throws DriverException, VisitException;
|
|
116 |
throws ReadDriverException, ExpansionFileReadException, VisitorException;
|
|
117 | 117 |
|
118 | 118 |
/** |
119 | 119 |
* Similar to process(FeatureVisitor) but allows cancelations. |
120 | 120 |
* @param visitor |
121 | 121 |
* @param cancel |
122 |
* @throws DriverException
|
|
123 |
* @throws VisitException
|
|
122 |
* @throws ReadDriverException TODO
|
|
123 |
* @throws VisitorException TODO
|
|
124 | 124 |
*/ |
125 |
void process(FeatureVisitor visitor, CancellableMonitorable cancel) throws DriverException, VisitException;
|
|
125 |
void process(FeatureVisitor visitor, CancellableMonitorable cancel) throws ReadDriverException, VisitorException;
|
|
126 | 126 |
/** |
127 | 127 |
* Recorre las features de la capa vectorial invocando el m?todo visit del |
128 | 128 |
* visitador que se pasa como par?metro, que es el que realizar? la |
129 | 129 |
* operaci?n relacionada con la geometry |
130 | 130 |
* |
131 | 131 |
* @param visitor |
132 |
* |
|
133 |
* @throws DriverException |
|
134 |
* @throws VisitException Si el visitor lanza una excepci?n al procesar una |
|
135 |
* geometr?a de la capa |
|
132 |
* @throws ReadDriverException TODO |
|
133 |
* @throws VisitorException TODO |
|
136 | 134 |
*/ |
137 |
void process(FeatureVisitor visitor) throws DriverException, VisitException;
|
|
135 |
void process(FeatureVisitor visitor) throws ReadDriverException, VisitorException;
|
|
138 | 136 |
|
139 | 137 |
|
140 | 138 |
/** |
... | ... | |
142 | 140 |
* @param visitor |
143 | 141 |
* @param rectangle |
144 | 142 |
* @param cancel |
145 |
* @throws DriverException |
|
146 |
* @throws VisitException |
|
143 |
* @throws ReadDriverException TODO |
|
144 |
* @throws ExpansionFileReadException |
|
145 |
* @throws VisitorException TODO |
|
147 | 146 |
*/ |
148 | 147 |
void process(FeatureVisitor visitor, |
149 |
Rectangle2D rectangle, CancellableMonitorable cancel) throws DriverException, VisitException;
|
|
148 |
Rectangle2D rectangle, CancellableMonitorable cancel) throws ReadDriverException, ExpansionFileReadException, VisitorException;
|
|
150 | 149 |
/** |
151 | 150 |
* Iterates features of a vectorial layer whose geometry would be within |
152 | 151 |
* Rectangle2D specified, and it calls visit method of visitor. |
153 | 152 |
* @param visitor |
154 | 153 |
* @param rectangle |
155 |
* @throws DriverException |
|
156 |
* @throws VisitException |
|
154 |
* @throws ReadDriverException TODO |
|
155 |
* @throws ExpansionFileReadException |
|
156 |
* @throws VisitorException TODO |
|
157 | 157 |
*/ |
158 | 158 |
void process(FeatureVisitor visitor, |
159 |
Rectangle2D rectangle) throws DriverException, VisitException;
|
|
159 |
Rectangle2D rectangle) throws ReadDriverException, ExpansionFileReadException, VisitorException;
|
|
160 | 160 |
|
161 | 161 |
|
162 | 162 |
|
... | ... | |
169 | 169 |
* |
170 | 170 |
* @return BitSet con los ?ndices de los registros de la repuesta a la |
171 | 171 |
* consulta. |
172 |
* |
|
173 |
* @throws DriverException
|
|
172 |
* @throws ReadDriverException TODO
|
|
173 |
* @throws VisitorException TODO
|
|
174 | 174 |
*/ |
175 |
FBitSet queryByPoint(Point2D p, double tolerance) throws DriverException;
|
|
175 |
FBitSet queryByPoint(Point2D p, double tolerance) throws ReadDriverException, VisitorException;
|
|
176 | 176 |
|
177 | 177 |
/** |
178 | 178 |
* Similar to previous method, but allowing cancelations. |
... | ... | |
180 | 180 |
* @param tolerance |
181 | 181 |
* @param cancel |
182 | 182 |
* @return |
183 |
* @throws DriverException |
|
183 |
* @throws ReadDriverException TODO |
|
184 |
* @throws VisitorException TODO |
|
184 | 185 |
*/ |
185 |
FBitSet queryByPoint(Point2D p, double tolerance, CancellableMonitorable cancel) throws DriverException;
|
|
186 |
FBitSet queryByPoint(Point2D p, double tolerance, CancellableMonitorable cancel) throws ReadDriverException, VisitorException;
|
|
186 | 187 |
|
187 | 188 |
/** |
188 | 189 |
* Realiza una query por rect?ngulo en coordenadas del mundo real de la |
... | ... | |
191 | 192 |
* @param rect Rect?ngulo sobre el que hacer la consulta. |
192 | 193 |
* |
193 | 194 |
* @return BitSet con los ?ndices de los registros. |
194 |
* |
|
195 |
* @throws DriverException
|
|
195 |
* @throws ReadDriverException TODO
|
|
196 |
* @throws VisitorException TODO
|
|
196 | 197 |
*/ |
197 |
FBitSet queryByRect(Rectangle2D rect) throws DriverException;
|
|
198 |
FBitSet queryByRect(Rectangle2D rect) throws ReadDriverException, VisitorException;
|
|
198 | 199 |
|
199 | 200 |
/** |
200 | 201 |
* Allowing cancelations. |
201 | 202 |
* @param rect |
202 | 203 |
* @param cancel |
203 | 204 |
* @return |
204 |
* @throws DriverException |
|
205 |
* @throws ReadDriverException TODO |
|
206 |
* @throws VisitorException TODO |
|
205 | 207 |
*/ |
206 | 208 |
FBitSet queryByRect(Rectangle2D rect, CancellableMonitorable cancel) |
207 |
throws DriverException;
|
|
209 |
throws ReadDriverException, VisitorException;
|
|
208 | 210 |
|
209 | 211 |
/** |
210 | 212 |
* Realiza una query por IGeometry en coordenadas del mundo real de la capa |
... | ... | |
214 | 216 |
* @param relationship |
215 | 217 |
* |
216 | 218 |
* @return BitSet con los ?ndices de los registros. |
217 |
* |
|
218 |
* @throws DriverException |
|
219 |
* @throws VisitException |
|
219 |
* @throws ReadDriverException TODO |
|
220 |
* @throws VisitorException TODO |
|
220 | 221 |
*/ |
221 | 222 |
FBitSet queryByShape(IGeometry g, int relationship) |
222 |
throws DriverException, VisitException;
|
|
223 |
throws ReadDriverException, VisitorException;
|
|
223 | 224 |
|
224 | 225 |
/** |
225 | 226 |
* Allowing cancelations |
... | ... | |
227 | 228 |
* @param relationship |
228 | 229 |
* @param cancel |
229 | 230 |
* @return |
230 |
* @throws DriverException
|
|
231 |
* @throws VisitException
|
|
231 |
* @throws ReadDriverException TODO
|
|
232 |
* @throws VisitorException TODO
|
|
232 | 233 |
*/ |
233 | 234 |
FBitSet queryByShape(IGeometry g, int relationship, CancellableMonitorable cancel) |
234 |
throws DriverException, VisitException;
|
|
235 |
throws ReadDriverException, VisitorException;
|
|
235 | 236 |
|
236 | 237 |
/** |
237 | 238 |
* Obtiene el rect?ngulo m?nimo que contiene todas las features |
Also available in: Unified diff