Revision 2204 org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.prov/org.gvsig.vectorediting.lib.prov.extendline/src/main/java/org/gvsig/vectorediting/lib/prov/extendline/operation/ExtendLineOperation.java

View differences:

ExtendLineOperation.java
26 26

  
27 27
import org.gvsig.fmap.dal.exception.DataException;
28 28
import org.gvsig.fmap.dal.feature.FeatureSelection;
29
import org.gvsig.fmap.geom.Geometry;
29 30
import org.gvsig.fmap.geom.exception.CreateGeometryException;
30 31
import org.gvsig.fmap.geom.operation.GeometryOperationException;
31 32
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException;
......
41 42
public interface ExtendLineOperation {
42 43

  
43 44
    /**
44
     * Extend line to boundary objects received as parameters.
45
     * Extend line to boundary objects received as parameters.Inserted point is the point inserted by user.It is used to determinate
46
 what side of curve it must extend.If curveToBeExtended does not intersect with any geometry, the geometry will
47
 not be modified.
45 48
     * 
46
     * Inserted point is the point inserted by user. It is used to determinate
47
     * what side of curve it must extend.
48 49
     * 
49
     * If curveToBeExtended does not intersect with any geometry, the geometry will
50
     * not be modified.
51
     * 
52 50
     * @param curveToBeExtended
53 51
     *            Curve to be extended.
54 52
     * @param insertedPoint
......
60 58
     *            intersects with curveToBeExtended, it will be extended to nearest
61 59
     *            point.
62 60
     * @return extended line.
61
     * @throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
62
     * @throws org.gvsig.fmap.geom.operation.GeometryOperationException
63
     * @throws org.gvsig.fmap.dal.exception.DataException
64
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
63 65
     */
64 66
    public Curve extendLine(Curve curveToBeExtended, Point insertedPoint,
65 67
        FeatureSelection boundaryObjects)
66 68
        throws GeometryOperationNotSupportedException,
67 69
        GeometryOperationException, DataException, CreateGeometryException;
68 70

  
71
        /**
72
     * Extend line to boundary objects received as parameters.Inserted point is the point inserted by user.It is used to determinate
73
 what side of curve it must extend.If curveToBeExtended does not intersect with any geometry, the geometry will
74
 not be modified.
75
     * 
76
     * 
77
     * @param curveToBeExtended
78
     *            Curve to be extended.
79
     * @param insertedPoint
80
     *            Point inserted by user to determinate what side of curve must
81
     *            be extended.
82
     * @param boundaryObject
83
     *            If curveToBeExtended intersects with boundary object, it will
84
     *            be extend to it.
85
     * @return extended line.
86
     * @throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
87
     * @throws org.gvsig.fmap.geom.operation.GeometryOperationException
88
     * @throws org.gvsig.fmap.dal.exception.DataException
89
     * @throws org.gvsig.fmap.geom.exception.CreateGeometryException
90
     */
91
    public Curve extendLine(Curve curveToBeExtended, Point insertedPoint,
92
        Geometry boundaryObject)
93
        throws GeometryOperationNotSupportedException,
94
        GeometryOperationException, DataException, CreateGeometryException;
95

  
69 96
}

Also available in: Unified diff