public abstract class AbstractLine extends AbstractCurve
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractLine.LineIterator |
class |
AbstractLine.VertexIterator |
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
Modifier and Type | Field and Description |
---|---|
protected ArrayListCoordinateSequence |
coordinates |
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Modifier | Constructor and Description |
---|---|
protected |
AbstractLine(int subtype) |
|
AbstractLine(int type,
int subtype) |
Modifier and Type | Method and Description |
---|---|
void |
addMoveToVertex(Point point) |
void |
addVertex(Point point) |
protected ArrayListCoordinateSequence |
cloneCoordinates() |
void |
closePrimitive() |
void |
ensureCapacity(int capacity) |
protected abstract Point |
fixPoint(Point point) |
void |
flip()
Flip the coordinates of the geometry.
|
double |
getCoordinateAt(int index,
int dimension) |
int |
getDimension()
Returns the largest number n such that each direct position in a
geometric set can be associated with a subset that has the direct
position in its interior and is similar (isomorphic) to Rn, Euclidean
n-space.
|
GeneralPathX |
getGeneralPath()
Get GeneralPathIterator, to do registered operations to it.
|
com.vividsolutions.jts.geom.Geometry |
getJTS() |
int |
getNumVertices() |
PathIterator |
getPathIterator(AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
Shape |
getShape() |
Shape |
getShape(AffineTransform affineTransform) |
abstract Point |
getVertex(int index) |
void |
insertVertex(int index,
Point p) |
boolean |
is3D() |
protected boolean |
isClosed() |
Iterator<Point> |
iterator() |
void |
removeVertex(int index) |
void |
reProject(ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as
parameter.
|
void |
setCoordinateAt(int index,
int dimension,
double value) |
void |
setGeneralPath(GeneralPathX generalPathX) |
void |
setPoints(Point initialPoint,
Point endPoint) |
void |
setVertex(int index,
Point p) |
void |
transform(AffineTransform at)
It applies an affine transformation to the geometry.
|
getHandlers
area, buffer, centroid, closestPoints, compareTo, contains, contains, contains, contains, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, snapTo, toString, touches, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, union, within
contains, contains, contains, contains, getBounds, intersects
compareTo
protected ArrayListCoordinateSequence coordinates
protected AbstractLine(int subtype)
public AbstractLine(int type, int subtype)
type
- subtype
- public abstract Point getVertex(int index)
public com.vividsolutions.jts.geom.Geometry getJTS()
public void addVertex(Point point)
public double getCoordinateAt(int index, int dimension)
public void setCoordinateAt(int index, int dimension, double value)
public void removeVertex(int index)
public int getNumVertices()
public void insertVertex(int index, Point p)
public void setVertex(int index, Point p)
public void setGeneralPath(GeneralPathX generalPathX)
public void addMoveToVertex(Point point)
public void closePrimitive()
public void ensureCapacity(int capacity)
public void reProject(ICoordTrans ct)
Geometry
ct
- Coordinate Transformer.public void transform(AffineTransform at)
Geometry
at
- The transformation to apply.public int getDimension()
Geometry
public Shape getShape(AffineTransform affineTransform)
public Shape getShape()
public PathIterator getPathIterator(AffineTransform at)
Geometry
at
- The transformation to apply.public PathIterator getPathIterator(AffineTransform at, double flatness)
Geometry
at
- The affine transformation.public GeneralPathX getGeneralPath()
Geometry
public boolean is3D()
protected boolean isClosed()
public void flip() throws GeometryOperationNotSupportedException, GeometryOperationException
Geometry
protected ArrayListCoordinateSequence cloneCoordinates()