public abstract class AbstractEllipse extends AbstractSurface
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus| Modifier and Type | Field and Description |
|---|---|
protected Point |
end |
protected Point |
init |
protected double |
ydist |
LOGGERBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEllipse(int type,
int subtype) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInteriorRing(Line ring)
Creates a ring from the coordinates of the line and adds it to the surface like an inner ring.
|
void |
addInteriorRing(Polygon polygon)
Creates a ring from the coordinates of the shell of the polygon and adds it to the surface like an inner ring.
|
void |
addInteriorRing(Ring ring) |
void |
addMoveToVertex(Point point)
Adds a vertex (or direct position) to the curve
|
OrientablePrimitive |
addVertex(double x,
double y)
Utility method for add a vertex
|
OrientablePrimitive |
addVertex(double x,
double y,
double z)
Utility method for add a vertex
|
OrientablePrimitive |
addVertex(Point point)
Adds a vertex (or direct position) to the curve
|
boolean |
canBeReprojected(ICoordTrans ct)
Return true if the geometry can be reprojected by the coordinate
transformation
|
boolean |
canBeTransformed(java.awt.geom.AffineTransform at)
Return true if the geometry can be transformed by the affine transform
|
void |
closePrimitive()
Closes the geometry
|
OrientablePrimitive |
ensureCapacity(int capacity) |
protected abstract Point |
fixPoint(Point point) |
void |
flip()
Flip the coordinates of the geometry.
|
Geometry |
force2D() |
Geometry |
force2DM() |
Geometry |
force3D() |
Geometry |
force3DM() |
protected double |
getAxis1Angle() |
Point |
getAxis1End() |
Point |
getAxis1Start() |
double |
getAxis2Dist() |
double |
getCoordinateAt(int index,
int dimension)
Gets the one of the values of a coordinate (direct position) in a
concrete 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.
|
Ring |
getInteriorRing(int index) |
java.util.List<Ring> |
getInteriorRings() |
int |
getNumInteriorRings() |
int |
getNumVertices()
Gets the number of vertices (direct positions) of the curve
|
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) |
Point |
getVertex(int index)
Gets a vertex (direct position)
|
OrientablePrimitive |
insertVertex(int index,
Point p)
Inserts a vertex (direct position) to the curve.
|
boolean |
is3D() |
boolean |
isEmpty() |
Geometry |
offset(int joinStyle,
double distance) |
void |
removeInteriorRing(int index) |
void |
removeVertex(int index)
Remove a vertex (direct position) to the curve
|
void |
reProject(ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as
parameter.
|
OrientablePrimitive |
setCoordinateAt(int index,
int dimension,
double value)
Sets the value of a coordinate (direct position) in a concrete dimension
|
void |
setGeneralPath(GeneralPathX generalPathX)
Sets all the coordinates of the curve
|
void |
setPoints(Point axis1Start,
Point axis1End,
double axis2Length) |
OrientablePrimitive |
setVertex(int index,
Point p)
Sets a vertex in a concrete position and replaces the
previous one that was in this position.
|
void |
transform(java.awt.geom.AffineTransform at)
It applies an affine transformation to the geometry.
|
get, getSurfaceAppearance, setSurfaceAppearance, size, splitgetHandlersarea, boundary, buffer, buffer, centroid, clone, closestPoints, compareTo, contains, contains, contains, contains, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, forceSubtype, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getProjection, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, setGeometryType, setProjection, setProjection, setProjectionIffNull, snapTo, toString, touches, union, withinfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarea, boundary, buffer, buffer, centroid, clone, cloneGeometry, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, forceSubtype, getBounds2D, getEnvelope, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getProjection, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toLines, toPoints, toPolygons, touches, union, withincontains, contains, contains, contains, getBounds, intersectsisEmpty, isEmpty, isEmptyQuietlygetJTSprotected AbstractEllipse(int type,
int subtype)
type - subtype - public Geometry force2D() throws GeometryOperationNotSupportedException, GeometryOperationException
GeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException
force2DM in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force3D() throws GeometryOperationNotSupportedException, GeometryOperationException
force3D in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException
force3DM in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic int getNumInteriorRings()
public Ring getInteriorRing(int index)
public void addInteriorRing(Ring ring)
public void addInteriorRing(Line ring)
Surfacepublic void addInteriorRing(Polygon polygon)
Surfacepublic void removeInteriorRing(int index)
public java.util.List<Ring> getInteriorRings()
public double getCoordinateAt(int index,
int dimension)
OrientablePrimitiveindex - The index of the direct position to set.dimension - The dimension of the direct position.public OrientablePrimitive setCoordinateAt(int index, int dimension, double value)
OrientablePrimitiveindex - The index of the direct position to setdimension - The dimension of the direct positionvalue - The value to setpublic OrientablePrimitive addVertex(Point point)
OrientablePrimitivepoint - The new point to addpublic OrientablePrimitive addVertex(double x, double y)
OrientablePrimitiveOrientablePrimitive.addVertex(Point)public OrientablePrimitive addVertex(double x, double y, double z)
OrientablePrimitiveOrientablePrimitive.addVertex(Point)public void removeVertex(int index)
OrientablePrimitiveindex - The index of the vertex to removepublic Point getVertex(int index)
OrientablePrimitiveindex - The index of the vertex to getpublic int getNumVertices()
OrientablePrimitivepublic OrientablePrimitive insertVertex(int index, Point p)
OrientablePrimitiveindex - The index of the vertex where the new point has to be added.p - The vertex to add.public OrientablePrimitive setVertex(int index, Point p)
OrientablePrimitiveindex - The index of the vertex where the new point has to be replaced.p - The vertex to set.public void setGeneralPath(GeneralPathX generalPathX)
OrientablePrimitivegeneralPathX - The generalPath that contains all the coordinatespublic void addMoveToVertex(Point point)
OrientablePrimitivepoint - The new point to addpublic void closePrimitive()
OrientablePrimitivepublic OrientablePrimitive 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()
public Point getAxis1Start()
public Point getAxis1End()
public double getAxis2Dist()
public void flip()
throws GeometryOperationNotSupportedException,
GeometryOperationException
Geometryprotected double getAxis1Angle()
throws GeometryOperationNotSupportedException,
GeometryOperationException
public boolean canBeTransformed(java.awt.geom.AffineTransform at)
Geometryat - the affine transformpublic boolean canBeReprojected(ICoordTrans ct)
Geometryct - the coordinate transformationpublic Geometry offset(int joinStyle, double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
GeometryOperationNotSupportedExceptionGeometryOperationException