trimLine
public MultiCurve trimLine(Curve curveToTrim,
Point insertedPoint,
FeatureSelection boundaryObjects)
throws GeometryOperationNotSupportedException,
GeometryOperationException,
DataException,
CreateGeometryException,
LocatorException
Trim line, taking as cutting edges the boundary objects received as
parameters.
Inserted point is the point inserted by user. It is used to determinate
what segment of curve it must trimmed.
If curveToBeExtended does not intersect with any geometry, the geometry
will not be modified.
- Specified by:
trimLine
in interface TrimLineOperation
- Parameters:
curveToTrim
- Curve to trim
insertedPoint
- Point inserted by user to determinate what side of curve must
be extended.
boundaryObjects
- If curveToBeExtended intersects with some boundary object, it
will
be extend to it. If there are several boundary objects that
intersects with curveToBeExtended, it will be extended to
nearest
point.
- Returns:
- Trimmed line
- Throws:
GeometryOperationNotSupportedException
GeometryOperationException
DataException
CreateGeometryException
LocatorException