public class Arc2D extends DefaultCurve implements Arc
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
gp
geometryType, id, projection
BEST, 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,
String id,
IProjection projection,
GeneralPathX gpx,
Point2D i,
Point2D c,
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(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(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, setVertex
area, 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, transform, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEndAngle, getMiddlePoint, getStartAngle
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setVertex
area, 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, within
contains, contains, contains, contains, getBounds, intersects
compareTo
public Arc2D(GeometryType geometryType)
GeometryType
#create()
to create the geometrytype
- The geometry typeprotected Arc2D(GeometryType geometryType, String id, IProjection projection, GeneralPathX gpx, Point2D i, Point2D c, Point2D e)
Geometry.cloneGeometry()
methodid
- projection
- gpx
- i
- c
- e
- public FShape cloneFShape()
FShape
cloneFShape
in interface FShape
public void transform(AffineTransform at)
OrientablePrimitive2D
transform
in interface FShape
transform
in interface Geometry
transform
in class OrientablePrimitive2D
at
- DOCUMENT ME!AffineTransform
public int getShapeType()
FShape
getShapeType
in interface FShape
getShapeType
in class AbstractPrimitive
public Handler[] getStretchingHandlers()
FShape
getStretchingHandlers
in interface FShape
getStretchingHandlers
in class OrientablePrimitive2D
public Handler[] getSelectHandlers()
FShape
getSelectHandlers
in interface FShape
getSelectHandlers
in class OrientablePrimitive2D
public boolean intersects(Rectangle2D r)
OrientablePrimitive2D
intersects
in interface Shape
intersects
in interface Geometry
intersects
in class OrientablePrimitive2D
r
- Rect�ngulo.public void setPoints(Point p1, Point p2, Point p3)
Arc
public void setGeneralPath(GeneralPathX generalPathX)
OrientablePrimitive
setGeneralPath
in interface OrientablePrimitive
setGeneralPath
in class OrientablePrimitive2D
generalPathX
- The generalPath that contains all the coordinatespublic void setPoints(Point center, double radius, double initAngle, double angleExt)
Arc
setPoints
in interface Arc
center
- 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)
Arc
setPointsStartExt
in interface Arc
center
- 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)
Arc
setPointsStartEnd
in interface Arc
center
- 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)
Curve
setPoints
in interface Curve
setPoints
in class OrientablePrimitive2D
startPoint
- The initial pointendPoint
- The end pointpublic Point getEndPoint()
Arc
getEndPoint
in interface Arc
public Point getInitPoint()
Arc
getInitPoint
in interface Arc
public Point getCenterPoint()
Arc
getCenterPoint
in interface Arc