public class Arc2D extends DefaultCurve implements Arc
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatusgpgeometryType, id, projectionBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Modifier | Constructor and Description |
|---|---|
|
Arc2D(GeometryType geometryType)
The constructor with the GeometryType like and argument
is used by the
GeometryType#create()
to create the geometry |
protected |
Arc2D(GeometryType geometryType,
java.lang.String id,
IProjection projection,
GeneralPathX gpx,
java.awt.geom.Point2D i,
java.awt.geom.Point2D c,
java.awt.geom.Point2D e)
Constructor used in the
Geometry.cloneGeometry() method |
| Modifier and Type | Method and Description |
|---|---|
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one.
|
Point |
getCenterPoint()
Return the center of the arc, that is, the center of the ellipse/circle
in which the arc is based.
|
Point |
getEndPoint()
Return the end point that has been used to create the arc.
|
Point |
getInitPoint()
Return the first point that has been used to create the arc.
|
Handler[] |
getSelectHandlers()
Returns the handlers used to select the geometries.
|
int |
getShapeType()
Gets the geometry type of this shape.
|
Handler[] |
getStretchingHandlers()
Returns the handlers they utilized to stretch the geometries.
|
boolean |
intersects(java.awt.geom.Rectangle2D r)
El m�todo intersects de java.awt.Shape que define la intersecci�n entre
una polil�nea y un Rectangle2D considera la polil�nea como un Shape
gen�rico y se producen errores en la selecci�n de polil�neas.
|
void |
setGeneralPath(GeneralPathX generalPathX)
Sets all the coordinates of the curve
|
void |
setPoints(Point center,
double radius,
double initAngle,
double angleExt)
Sets the values to define an arc.
|
void |
setPoints(Point startPoint,
Point endPoint)
Sets the initial point and the end point of the curve.
|
void |
setPoints(Point p1,
Point p2,
Point p3)
Sets the three points to define an arc.
|
void |
setPointsStartEnd(Point center,
double radius,
double startAngle,
double endAngle)
Sets the values to define an arc.
|
void |
setPointsStartExt(Point center,
double radius,
double startAngle,
double angleExt)
Sets the values to define an arc.
|
void |
transform(java.awt.geom.AffineTransform at)
DOCUMENT ME!
|
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, contains, contains, contains, contains, ensureCapacity, getBounds, getBounds2D, getCoordinateAt, getDimension, getEnvelope, getGeneralPath, getGeneralPathX, getNumVertices, getPathIterator, getPathIterator, getShape, getShape, getVertex, insertVertex, intersects, removeVertex, reProject, setCoordinateAt, setVertexarea, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getInternalShape, getSRS, getType, getValidationStatus, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, toJTS, toString, touches, union, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEndAngle, getMiddlePoint, getStartAngleaddMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setVertexarea, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, reProject, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, union, withinpublic Arc2D(GeometryType geometryType)
GeometryType#create()
to create the geometrytype - The geometry typeprotected Arc2D(GeometryType geometryType, java.lang.String id, IProjection projection, GeneralPathX gpx, java.awt.geom.Point2D i, java.awt.geom.Point2D c, java.awt.geom.Point2D e)
Geometry.cloneGeometry() methodid - projection - gpx - i - c - e - public FShape cloneFShape()
FShapecloneFShape in interface FShapepublic void transform(java.awt.geom.AffineTransform at)
OrientablePrimitive2Dpublic int getShapeType()
FShapegetShapeType in interface FShapegetShapeType in class AbstractPrimitivepublic Handler[] getStretchingHandlers()
FShapegetStretchingHandlers in interface FShapegetStretchingHandlers in class OrientablePrimitive2Dpublic Handler[] getSelectHandlers()
FShapegetSelectHandlers in interface FShapegetSelectHandlers in class OrientablePrimitive2Dpublic boolean intersects(java.awt.geom.Rectangle2D r)
OrientablePrimitive2Dintersects in interface java.awt.Shapeintersects in interface Geometryintersects in class OrientablePrimitive2Dr - Rect�ngulo.public void setPoints(Point p1, Point p2, Point p3)
Arcpublic void setGeneralPath(GeneralPathX generalPathX)
OrientablePrimitivesetGeneralPath in interface OrientablePrimitivesetGeneralPath in class OrientablePrimitive2DgeneralPathX - The generalPath that contains all the coordinatespublic void setPoints(Point center, double radius, double initAngle, double angleExt)
ArcsetPoints in interface Arccenter - The center of the arc.radius - The radius.initAngle - The start angle of the arc (in radians)angleExt - The angular extent of the arc (in radians).
The sign convention is:
startAngle = 0 is "3 o'clock";
startAngle = (PI / 3) is "1 o'clock";
angleExt > 0 means "advancing clockwise";
angleExt < 0 means "advancing counterclockwise".public void setPointsStartExt(Point center, double radius, double startAngle, double angleExt)
ArcsetPointsStartExt in interface Arccenter - The center of the arc.radius - The radius.startAngle - The start angle of the arc (in radians)angleExt - The angular extent of the arc (in radians).
The sign convention is:
startAngle = 0 is "3 o'clock";
startAngle = (PI / 3) is "1 o'clock";
angleExt > 0 means "advancing clockwise";
angleExt < 0 means "advancing counterclockwise".public void setPointsStartEnd(Point center, double radius, double startAngle, double endAngle)
ArcsetPointsStartEnd in interface Arccenter - The center of the arc.radius - The radius.startAngle - The start angle of the arc (in radians)endAngle - The end angle of the arc (in radians).public void setPoints(Point startPoint, Point endPoint)
CurvesetPoints in interface CurvesetPoints in class OrientablePrimitive2DstartPoint - The initial pointendPoint - The end pointpublic Point getEndPoint()
ArcgetEndPoint in interface Arcpublic Point getInitPoint()
ArcgetInitPoint in interface Arcpublic Point getCenterPoint()
ArcgetCenterPoint in interface Arc