public abstract class AbstractEllipticArc extends AbstractSurface
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus| Modifier and Type | Field and Description |
|---|---|
protected double |
angExt |
protected double |
angSt |
protected Point |
axis1End |
protected Point |
axis1Start |
protected double |
semiAxis2Length |
loggerBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEllipticArc(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
|
void |
addVertex(double x,
double y)
Utility method for add a vertex
|
void |
addVertex(double x,
double y,
double z)
Utility method for add a vertex
|
void |
addVertex(Point point)
Adds a vertex (or direct position) to the curve
|
void |
closePrimitive()
Closes the geometry
|
void |
ensureCapacity(int capacity) |
protected abstract Point |
fixPoint(Point point) |
void |
flip()
Flip the coordinates of the geometry.
|
double |
getAngExt() |
double |
getAngSt() |
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) |
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)
|
void |
insertVertex(int index,
Point p)
Inserts a vertex (direct position) to the curve.
|
boolean |
is3D() |
Geometry |
offset(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.
|
void |
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,
double angSt,
double angExt) |
void |
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.
|
getSurfaceAppearance, setSurfaceAppearancegetHandlersarea, 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, getHandlers, getInteriorPoint, getInternalShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, out, overlaps, perimeter, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, union, withincontains, contains, contains, contains, getBounds, intersectsgetJTSprotected Point axis1Start
protected Point axis1End
protected double semiAxis2Length
protected double angSt
protected double angExt
protected AbstractEllipticArc(int type,
int subtype)
type - subtype - public 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 double getCoordinateAt(int index,
int dimension)
OrientablePrimitiveindex - The index of the direct position to set.dimension - The dimension of the direct position.public void 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 void addVertex(Point point)
OrientablePrimitivepoint - The new point to addpublic void addVertex(double x,
double y)
OrientablePrimitiveOrientablePrimitive.addVertex(Point)public void 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 void 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 void 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 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()
public void setPoints(Point axis1Start, Point axis1End, double axis2Length, double angSt, double angExt)
public Point getAxis1Start()
public Point getAxis1End()
public double getAxis2Dist()
public double getAngSt()
public double getAngExt()
public void flip()
throws GeometryOperationNotSupportedException,
GeometryOperationException
Geometrypublic Geometry offset(double distance) throws GeometryOperationNotSupportedException, GeometryOperationException