Package org.gvsig.fmap.geom.primitive
Interface Circle
- All Superinterfaces:
Cloneable,Comparable,Geometry,org.gvsig.tools.util.GetItem<Point>,org.gvsig.tools.util.IsEmpty,OrientablePrimitive,OrientableSurface,Primitive,Serializable,Shape,org.gvsig.tools.util.Size,Surface
This interface is equivalent to the GM_Circle specified in ISO 19107. Same as Arc, but closed to form a full circle. The "start" and "end" points are equal.
- Author:
- Jorge Piera
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus -
Field Summary
Fields inherited from interface org.gvsig.fmap.geom.Geometry
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W -
Method Summary
Modifier and TypeMethodDescriptionReturns the center of the circle.doubleReturns the radius of the circleReturns minimum corner of the framing rectangle.doubleReturn the height of the framing rectangle.doubleReturn the width of the framing rectangle.voidSets the two values to define a circle.voidSets the two values to define a circle.voidSets the values to define a circle from three points.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gvsig.fmap.geom.Geometry
area, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, clone, cloneGeometry, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, flip, force2D, forceSubtype, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getProjection, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, isSimple, isValid, isWithinDistance, makeValid, move, offset, offset, out, overlaps, perimeter, reProject, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toLines, toPoints, toPolygons, touches, transform, union, withinMethods inherited from interface org.gvsig.tools.util.GetItem
getMethods inherited from interface org.gvsig.tools.util.IsEmpty
isEmptyMethods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertexMethods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersectsMethods inherited from interface org.gvsig.tools.util.Size
sizeMethods inherited from interface org.gvsig.fmap.geom.primitive.Surface
addInteriorRing, addInteriorRing, addInteriorRing, getInteriorRing, getInteriorRings, getNumInteriorRings, getSurfaceAppearance, removeInteriorRing, setSurfaceAppearance, split
-
Method Details
-
setPoints
Sets the two values to define a circle.- Parameters:
center- The center point of the circle.radious- A point that is used to calculate the radius.
-
setPoints
Sets the two values to define a circle.- Parameters:
center- The center point of the circle.radious- The radius of the circle.
-
setPoints
Sets the values to define a circle from three points. The circle will be inside or the area defined by the three points.- Parameters:
p1- First pointp2- Second pointp3- Third point
-
getCenter
Point getCenter()Returns the center of the circle.- Returns:
- The center of the circle.
-
getRadious
double getRadious()Returns the radius of the circle- Returns:
- The radius of the circle
-
getRectangleCorner
Point getRectangleCorner()Returns minimum corner of the framing rectangle.- Returns:
-
getRectangleHeight
double getRectangleHeight()Return the height of the framing rectangle.- Returns:
-
getRectangleWidth
double getRectangleWidth()Return the width of the framing rectangle.- Returns:
-