public abstract class AbstractCircle extends AbstractSurface
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus| Modifier and Type | Field and Description |
|---|---|
protected Point |
center |
protected double |
radius |
loggerBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Modifier | Constructor and Description |
|---|---|
|
AbstractCircle(int type,
int subtype) |
protected |
AbstractCircle(int type,
int subtype,
Point center,
double radius) |
| 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.
|
Point |
getCenter() |
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.
|
double |
getRadious() |
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() |
boolean |
isSimple()
Returns
true if this Geometry has no interior point of
self-intersection or self-tangency. |
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 |
setCenter(Point center) |
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 center,
double radius) |
void |
setPoints(Point center,
Point radius) |
void |
setRadius(double radius) |
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, 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, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, union, withincontains, contains, contains, contains, getBounds, intersectsgetJTSprotected Point center
protected double radius
public AbstractCircle(int type,
int subtype)
type - subtype - protected AbstractCircle(int type,
int subtype,
Point center,
double radius)
type - subtype - public void setCenter(Point center)
center - the center to setpublic Point getCenter()
public void setRadius(double radius)
radius - the radius to setpublic double getRadious()
public int getDimension()
Geometrypublic boolean isSimple()
Geometrytrue if this Geometry has no interior point of
self-intersection or self-tangency. In mathematical formalisms, this
means that every point in the interior of the object must have a metric
neighborhood whose intersection with the object is isomorphic to an
n-sphere, where n is the dimension of this Geometry.isSimple in interface GeometryisSimple in class AbstractGeometrypublic void setPoints(Point center, double radius)
public boolean is3D()
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 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 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 void reProject(ICoordTrans ct)
Geometryct - Coordinate Transformer.public void transform(java.awt.geom.AffineTransform at)
Geometryat - The transformation to apply.public void flip()
throws GeometryOperationNotSupportedException,
GeometryOperationException
Geometry