|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D
org.gvsig.fmap.geom.primitive.impl.OrientableCurve2D
org.gvsig.fmap.geom.primitive.impl.DefaultCurve
org.gvsig.fmap.geom.primitive.impl.Curve2D
org.gvsig.fmap.geom.primitive.impl.Arc2D
public class Arc2D
DOCUMENT ME!
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry |
|---|
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES |
| Field Summary |
|---|
| Fields inherited from class org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D |
|---|
gp |
| Fields inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
|---|
geometryType, id, projection |
| Fields inherited from interface org.gvsig.fmap.geom.Geometry |
|---|
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W |
| Constructor Summary | |
|---|---|
|
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,
org.cresques.cts.IProjection projection,
GeneralPathX gpx,
Point2D i,
Point2D c,
Point2D e)
Constructor used in the Geometry.cloneGeometry() method |
| Method Summary | |
|---|---|
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! |
| Methods inherited from class org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D |
|---|
addMoveToVertex, addVertex, closePrimitive, contains, contains, contains, contains, getBounds, getBounds2D, getCoordinateAt, getDimension, getEnvelope, getGeneralPath, getGeneralPathX, getNumVertices, getPathIterator, getPathIterator, getShape, getShape, getVertex, insertVertex, intersects, removeVertex, reProject, setCoordinateAt, setVertex |
| Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
|---|
area, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getInternalShape, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isSimple, isWithinDistance, move, overlaps, perimeter, rotate, scale, snapTo, toString, touches, transform, union, within |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive |
|---|
addMoveToVertex, addVertex, closePrimitive, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setVertex |
| Methods inherited from interface org.gvsig.fmap.geom.Geometry |
|---|
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, invokeOperation, invokeOperation, isSimple, isWithinDistance, move, overlaps, perimeter, reProject, rotate, scale, snapTo, touches, union, within |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, contains, getBounds, intersects |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public Arc2D(GeometryType geometryType)
GeometryType#create()
to create the geometry
type - The geometry type
protected Arc2D(GeometryType geometryType,
String id,
org.cresques.cts.IProjection projection,
GeneralPathX gpx,
Point2D i,
Point2D c,
Point2D e)
Geometry.cloneGeometry() method
id - projection - gpx - i - c - e - | Method Detail |
|---|
public FShape cloneFShape()
FShape
cloneFShape in interface FShapecloneFShape in class Curve2Dpublic void transform(AffineTransform at)
OrientablePrimitive2D
transform in interface Geometrytransform in interface FShapetransform in class OrientablePrimitive2Dat - DOCUMENT ME!AffineTransformpublic int getShapeType()
FShape
getShapeType in interface FShapegetShapeType in class Curve2Dpublic Handler[] getStretchingHandlers()
FShape
getStretchingHandlers in interface FShapegetStretchingHandlers in class OrientablePrimitive2Dpublic Handler[] getSelectHandlers()
FShape
getSelectHandlers in interface FShapegetSelectHandlers in class OrientablePrimitive2Dpublic boolean intersects(Rectangle2D r)
OrientablePrimitive2D
intersects in interface Shapeintersects in interface Geometryintersects in class OrientablePrimitive2Dr - Rect�ngulo.
public void setPoints(Point p1,
Point p2,
Point p3)
Arc
setPoints in interface Arcp1 - The start point of an arc.p2 - The middle point of an arc.p3 - The end point of an arc.public void setGeneralPath(GeneralPathX generalPathX)
OrientablePrimitive
setGeneralPath in interface OrientablePrimitivesetGeneralPath in class OrientablePrimitive2DgeneralPathX - The generalPath that contains all the coordinates
public void setPoints(Point center,
double radius,
double initAngle,
double angleExt)
Arc
setPoints 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)
Arc
setPointsStartExt 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)
Arc
setPointsStartEnd 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)
Curve
setPoints in interface CurvesetPoints in class Curve2DstartPoint - The initial pointendPoint - The end pointpublic Point getEndPoint()
Arc
getEndPoint in interface Arcpublic Point getInitPoint()
Arc
getInitPoint in interface Arcpublic Point getCenterPoint()
Arc
getCenterPoint in interface Arc
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||