|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D org.gvsig.fmap.geom.primitive.impl.OrientableSurface2D org.gvsig.fmap.geom.primitive.impl.Surface2D org.gvsig.fmap.geom.primitive.impl.Circle2D
public class Circle2D
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, geomManager, 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 | |
---|---|
Circle2D(GeometryType geometryType)
The constructor with the GeometryType like and argument is used by the GeometryType #create()
to create the geometry |
Method Summary | |
---|---|
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one. |
Point |
getCenter()
Returns the center of the circle. |
double |
getRadious()
Returns the radius of the circle |
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 |
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(Point2D center,
double radious)
|
void |
setPoints(Point2D center,
Point2D radious)
|
void |
setPoints(Point2D p1,
Point2D p2,
Point2D p3)
|
void |
setPoints(Point center,
double radious)
Sets the two values to define a circle. |
void |
setPoints(Point center,
double radius,
double initAngle,
double angleExt)
|
void |
setPoints(Point center,
Point radious)
Sets the two values to define a circle. |
void |
setPoints(Point p1,
Point p2,
Point p3)
Sets the values to define a circle from three points. |
void |
transform(AffineTransform at)
DOCUMENT ME! |
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.Surface2D |
---|
getSurfaceAppearance, setSurfaceAppearance |
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D |
---|
addMoveToVertex, addVertex, addVertexes, closePrimitive, contains, contains, contains, contains, getBounds, getBounds2D, getCoordinateAt, getDimension, getEnvelope, getGeneralPath, getGeneralPathX, getNumVertices, getPathIterator, getPathIterator, getVertex, insertVertex, intersects, removeVertex, reProject, setVertex |
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
---|
area, buffer, centroid, cloneGeometry, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInternalShape, getShape, getShape, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isSimple, moveGeom, overlaps, perimeter, rotateGeom, scaleGeom, 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.Surface |
---|
getSurfaceAppearance, setSurfaceAppearance |
Methods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive |
---|
addMoveToVertex, addVertex, addVertexes, closePrimitive, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setVertex |
Methods inherited from interface org.gvsig.fmap.geom.Geometry |
---|
area, buffer, centroid, cloneGeometry, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, reProject, 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 Circle2D(GeometryType geometryType)
GeometryType
#create()
to create the geometry
type
- The geometry typeMethod Detail |
---|
public Point getCenter()
Circle
getCenter
in interface Circle
public FShape cloneFShape()
FShape
cloneFShape
in interface FShape
cloneFShape
in class Surface2D
public int getShapeType()
FShape
getShapeType
in interface FShape
getShapeType
in class Surface2D
public void transform(AffineTransform at)
OrientablePrimitive2D
transform
in interface Geometry
transform
in interface FShape
transform
in class OrientablePrimitive2D
at
- DOCUMENT ME!AffineTransform
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 Surface2D
r
- Rect�ngulo.
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, Point radious)
Circle
setPoints
in interface Circle
setPoints
in class OrientablePrimitive2D
center
- The center point of the circle.radious
- A point that is used to calculate the radius.public void setPoints(Point center, double radious)
Circle
setPoints
in interface Circle
center
- The center point of the circle.radious
- The radius of the circle.public void setPoints(Point p1, Point p2, Point p3)
Circle
setPoints
in interface Circle
p1
- First pointp2
- Second pointp3
- Third pointpublic void setPoints(Point2D center, Point2D radious)
public void setPoints(Point2D center, double radious)
public void setPoints(Point2D p1, Point2D p2, Point2D p3)
public void setCoordinateAt(int index, int dimension, double value)
OrientablePrimitive
setCoordinateAt
in interface OrientablePrimitive
setCoordinateAt
in class OrientablePrimitive2D
index
- The index of the direct position to setdimension
- The dimension of the direct positionvalue
- The value to setpublic void setPoints(Point center, double radius, double initAngle, double angleExt)
public double getRadious()
Circle
getRadious
in interface Circle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |