Revision 2109 org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.spi/src/main/java/org/gvsig/vectorediting/lib/spi/EditingProviderServices.java

View differences:

EditingProviderServices.java
45 45
import org.gvsig.fmap.geom.primitive.Point;
46 46
import org.gvsig.fmap.geom.primitive.Spline;
47 47
import org.gvsig.fmap.geom.type.GeometryType;
48
import org.gvsig.fmap.mapcontext.MapContext;
48 49
import org.gvsig.tools.exception.BaseException;
49 50
import org.gvsig.tools.service.spi.ProviderServices;
50 51

  
......
126 127

  
127 128
    /**
128 129
     * Creates a circle as of center and radius.
130
     * @deprecated
131
     * Use same method in GeometryUtils
129 132
     *
130 133
     * @param center
131 134
     *            of new circle
......
136 139
     * @return The circle created with center and radius
137 140
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
138 141
     */
142
    @Deprecated
139 143
    public Circle createCircle(Point center, double radius, int subtype)
140 144
        throws CreateGeometryException;
141 145

  
142 146
    /**
143 147
     * Creates a circle from three points.
148
     * @deprecated
149
     * Use same method in GeometryUtils
144 150
     *
145 151
     * @param firstPoint
146 152
     *            of circle
......
153 159
     * @return The circle created from three points received as parameters.
154 160
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
155 161
     */
162
    @Deprecated
156 163
    public Circle createCircle(Point firstPoint, Point secondPoint,
157 164
        Point thirdPoint, int subtype) throws CreateGeometryException;
158 165

  
159 166
    /**
160 167
     * Creates a circle from five points.The first two points are two points on a tangent to the circle.The next two are two points on another tangent to the circle.The last one is a point near the center of the circle.
168
     * @deprecated
169
     * Use same method in GeometryUtils
161 170
     *
162 171
     * @param firstPoint
163 172
     * @param secondPoint
......
169 178
     * @return The circle created from three points received as parameters.
170 179
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
171 180
     */
181
    @Deprecated
172 182
    public Circle createCircle(Point firstPoint, Point secondPoint,
173 183
        Point thirdPoint, Point fourthPoint, Point fifthPoint, int subtype) throws CreateGeometryException;
174 184

  
175
        /**
185
    /**
176 186
     * Creates a circle from two tangents and one point.
187
     * @deprecated
188
     * Use same method in GeometryUtils
177 189
     *
178 190
     * @param line1
179 191
     *            A tangent line
......
186 198
     * @return The circle created from two tangents and one point received as parameters.
187 199
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
188 200
     */
201
    @Deprecated
189 202
    public Circle createCircle(EuclideanLine2D line1, EuclideanLine2D line2,
190 203
        Point point, int subtype) throws CreateGeometryException;
191 204

  
192 205
    /**
206
     * Creates a circle from two tangent geometries and the radius.
207
     * @deprecated
208
     * Use same method in GeometryUtils
209
     *
210
     * @param geometry1
211
     *            A tangent geometry
212
     * @param geometry2
213
     *            Another tangent geometry
214
     * @param radius
215
     *            the radius of the cicle.
216
     * @param firstPoint
217
     *            a point near tangent point of geometry1
218
     * @param secondPoint
219
     *            a point near tangent point of geometry2
220
     * @param subtype
221
     *            subtype of circle. See {@link Geometry.SUBTYPES}
222
     * @return The circle created from two tangent geometries and the radius received as parameters.
223
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
224
     */
225
    @Deprecated
226
    public Circle createCircle(Geometry geometry1, Geometry geometry2,
227
        double radius, Point firstPoint, Point secondPoint, int subtype) throws CreateGeometryException;
228

  
229
    /**
193 230
     * Creates an arc as of center, radius, start angle and extension angle.
231
     * @deprecated
232
     * Use same method in GeometryUtils
194 233
     *
195 234
     * @param center
196 235
     *            center of arc.
......
206 245
     *         angle.
207 246
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
208 247
     */
248
    @Deprecated
209 249
    public Arc createArc(Point center, double radius, double startAngle,
210 250
        double angleExt, int subtype) throws CreateGeometryException;
211 251

  
212 252
    /**
213 253
     * Creates an arc as of three points.
254
     * @deprecated
255
     * Use same method in GeometryUtils
214 256
     *
215 257
     * @param start
216 258
     *            point of arc
......
224 266
     *         point and end at end point.
225 267
     * @throws org.gvsig.tools.exception.BaseException
226 268
     */
269
    @Deprecated
227 270
    public Arc createArc(Point start, Point middle, Point end, int subtype)
228 271
        throws BaseException;
229 272

  
230 273
    /**
231 274
     * Creates an ellipse from start and end point of A axis and half length
232 275
     * of B axis.
276
     * @deprecated
277
     * Use same method in GeometryUtils
233 278
     *
234 279
     * @param firstPointAxisA
235 280
     *            first point of A axis
......
242 287
     * @return The ellipse created
243 288
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
244 289
     */
290
    @Deprecated
245 291
    public Arc createEllipse(Point firstPointAxisA,
246 292
        Point secondPointAxisA, double halfLengthAxisB, int subtype)
247 293
        throws CreateGeometryException;
......
249 295
    /**
250 296
     * Creates a filled ellipse from start and end point of A axis and half length
251 297
     * of B axis.
298
     * @deprecated
299
     * Use same method in GeometryUtils
252 300
     *
253 301
     * @param firstPointAxisA
254 302
     *            first point of A axis
......
261 309
     * @return The ellipse created
262 310
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
263 311
     */
312
    @Deprecated
264 313
    public Ellipse createFilledEllipse(Point firstPointAxisA,
265 314
        Point secondPointAxisA, double halfLengthAxisB, int subtype)
266 315
        throws CreateGeometryException;
......
268 317

  
269 318
    /**
270 319
     * Creates point with x and y values.
320
     * @deprecated
321
     * Use createPoint from GeometryManager
271 322
     *
272 323
     * @param x
273 324
     *            The X coordinate
......
278 329
     * @return The Point created.
279 330
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
280 331
     */
332
    @Deprecated
281 333
    public Point createPoint(double x, double y, int subtype)
282 334
        throws CreateGeometryException;
283 335

  
284 336
    /**
285 337
     * Creates line as of two point coordinates.
338
     * @deprecated
339
     * Use same method in GeometryUtils
286 340
     *
287 341
     * @param x1
288 342
     *            The X1 coordinate
......
297 351
     * @return The Line created.
298 352
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
299 353
     */
354
    @Deprecated
300 355
    public Line createLine(double x1, double y1, double x2, double y2,
301 356
        int subtype) throws CreateGeometryException;
302 357

  
303 358
    /**
304 359
     * Creates line as of two point objects.
360
     * @deprecated
361
     * Use same method in GeometryUtils
305 362
     *
306 363
     * @param p1
307 364
     *            First point
......
312 369
     * @return The Line created.
313 370
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
314 371
     */
372
    @Deprecated
315 373
    public Line createLine(Point p1, Point p2, int subtype)
316 374
        throws CreateGeometryException;
317 375

  
318 376
    /**
377
     * Create Spline from point list
378
     * @deprecated
379
     * Use same method in GeometryUtils
319 380
     *
320 381
     * @param points
321 382
     * @param subtype
322 383
     * @return
323 384
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
324 385
     */
386
    @Deprecated
325 387
    public Spline createSpline(List<Point> points, int subtype)
326 388
        throws CreateGeometryException;
327 389

  
......
360 422

  
361 423
    /**
362 424
     * Gets center point of three points.
425
     * @deprecated
426
     * Use same method in GeometryUtils
363 427
     *
364 428
     * @param a
365 429
     *            Point one
......
372 436
     * @return Point center.
373 437
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
374 438
     */
439
    @Deprecated
375 440
    public Point getCenter(Point a, Point b, Point c, int subtype)
376 441
        throws CreateGeometryException;
377 442

  
378 443
    /**
379 444
     * Gets midpoint of two points
445
     * @deprecated
446
     * Use same method in GeometryUtils
380 447
     *
381 448
     * @param a
382 449
     *            Point one
......
387 454
     * @return Mid point of points.
388 455
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
389 456
     */
457
    @Deprecated
390 458
    public Point getMidPoint(Point a, Point b, int subtype)
391 459
        throws CreateGeometryException;
392 460

  
......
464 532
     * @return Distance of angles
465 533
     */
466 534
    public double angleDistance(double angle1, double angle2);
535
    
536
    /**
537
     * Return a geometry from store that intersects with the point.
538
     * 
539
     * @param point
540
     * @param store
541
     * @param mapContext
542
     * @return
543
     */
544
    public Geometry getGeometry(Point point, FeatureStore store, MapContext mapContext);
545

  
546
    /**
547
     * Return a geometry that intersects with the point from the visible layers 
548
     * if it can't be found in the feature store.
549
     * 
550
     * @param point
551
     * @param store
552
     * @param mapContext
553
     * @return
554
     */
555
    public Geometry getGeometryOfVisibleLayers(Point point, FeatureStore store, MapContext mapContext);
556

  
467 557
}

Also available in: Unified diff