public class Line2D extends DefaultCurve implements Line
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatusgpgeometryType, geomManager, id, logger, projectionBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Constructor and Description |
|---|
Line2D(GeometryType geomType)
The constructor with the GeometryType like and argument
is used by the
GeometryType#create()
to create the geometry |
Line2D(GeometryType geomType,
java.lang.String id,
IProjection projection,
GeneralPathX gpx)
Constructor used in the
Geometry.cloneGeometry() method. |
| Modifier and Type | Method and Description |
|---|---|
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one.
|
int |
getShapeType()
Gets the geometry type of this shape.
|
void |
setPoints(Point startPoint,
Point endPoint)
Sets the initial point and the end point of the curve.
|
MultiLine |
toLines()
Converts the geometry to be lines and makes with them a multiLine
|
MultiPoint |
toPoints()
Converts the geometry to be points and makes with them a multiPoint
|
MultiPolygon |
toPolygons()
Converts the geometry to be polygons and makes with them a multiPolygon
|
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, contains, contains, contains, contains, ensureCapacity, getBounds, getBounds2D, getCoordinateAt, getDimension, getEnvelope, getGeneralPath, getGeneralPathX, getNumVertices, getPathIterator, getPathIterator, getSelectHandlers, getShape, getShape, getStretchingHandlers, getVertex, insertVertex, intersects, intersects, removeVertex, reProject, setCoordinateAt, setGeneralPath, setVertex, transformarea, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getInternalShape, getSRS, getType, getValidationStatus, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, toJTS, toString, touches, union, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertexarea, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, reProject, rotate, scale, snapTo, touches, transform, union, withinpublic Line2D(GeometryType geomType)
GeometryType#create()
to create the geometrytype - The geometry typepublic Line2D(GeometryType geomType, java.lang.String id, IProjection projection, GeneralPathX gpx)
Geometry.cloneGeometry() method.geomType - id - projection - gpx - public int getShapeType()
FShapegetShapeType in interface FShapegetShapeType in class AbstractPrimitivepublic FShape cloneFShape()
FShapecloneFShape in interface FShapepublic void setPoints(Point startPoint, Point endPoint)
CurvesetPoints in interface CurvesetPoints in class OrientablePrimitive2DstartPoint - The initial pointendPoint - The end pointpublic MultiPoint toPoints() throws GeometryException
GeometrytoPoints in interface GeometryGeometryExceptionpublic MultiLine toLines() throws GeometryException
GeometrytoLines in interface GeometryGeometryExceptionpublic MultiPolygon toPolygons() throws GeometryException
GeometrytoPolygons in interface GeometryGeometryException