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() |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
java.awt.Shape |
getShape() |
java.awt.Shape |
getShape(java.awt.geom.AffineTransform affineTransform) |
abstract Point |
getVertex(int index) |
void |
insertVertex(int index,
Point p) |
boolean |
is3D() |
protected boolean |
isClosed() |
java.util.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(java.awt.geom.AffineTransform at)
It applies an affine transformation to the geometry.
|
getHandlersarea, 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, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarea, 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, withinprotected ArrayListCoordinateSequence coordinates
protected AbstractLine(int subtype)
public AbstractLine(int type,
int subtype)
type - subtype - public abstract Point getVertex(int index)
public java.util.Iterator<Point> iterator()
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)
Geometryct - Coordinate Transformer.public void transform(java.awt.geom.AffineTransform at)
Geometryat - The transformation to apply.public int getDimension()
Geometrypublic java.awt.Shape getShape(java.awt.geom.AffineTransform affineTransform)
public java.awt.Shape getShape()
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
Geometryat - The transformation to apply.public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
Geometryat - The affine transformation.public GeneralPathX getGeneralPath()
Geometrypublic boolean is3D()
protected boolean isClosed()
public void flip()
throws GeometryOperationNotSupportedException,
GeometryOperationException
Geometryprotected ArrayListCoordinateSequence cloneCoordinates()