Package org.gvsig.fmap.geom.primitive
Interface Ellipse
- 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
An ellipse is the finite or bounded case of a conic section, the geometric shape that results from cutting a circular conical or cylindrical surface with an oblique plane (the other two cases being the parabola and the hyperbola). It is also the locus of all points of the plane whose distances to two fixed points add to the same constant.
- 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 point where the first axis ends.Returns the point where the first axis starts.doubleReturns the length of the second axis.Returns minimum corner of the ellipse framing rectangle.doubleReturn the height of the ellipse framing rectangle.Return the rotate transform of the ellipse framing rectangle.doubleReturn the width of the ellipse framing rectangle.voidSets the values to define a ellipse.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 values to define a ellipse.- Parameters:
axis1Start- The point where the first axis starts.axis1End- The point where the first axis ends.axis2Length- The length of the second axis.
-
getAxis1Start
Point getAxis1Start()Returns the point where the first axis starts.- Returns:
- The point where the first axis starts.
-
getAxis1End
Point getAxis1End()Returns the point where the first axis ends.- Returns:
- The point where the first axis ends.
-
getAxis2Dist
double getAxis2Dist()Returns the length of the second axis.- Returns:
- The length of the second axis.
-
getRectangleCorner
Point getRectangleCorner()Returns minimum corner of the ellipse framing rectangle.- Returns:
-
getRectangleHeight
double getRectangleHeight()Return the height of the ellipse framing rectangle.- Returns:
-
getRectangleWidth
double getRectangleWidth() throws GeometryOperationNotSupportedException, GeometryOperationExceptionReturn the width of the ellipse framing rectangle.- Returns:
- Throws:
GeometryOperationExceptionGeometryOperationNotSupportedException
-
getRectangleRotation
AffineTransform getRectangleRotation() throws GeometryOperationNotSupportedException, GeometryOperationExceptionReturn the rotate transform of the ellipse framing rectangle.- Returns:
- Throws:
GeometryOperationExceptionGeometryOperationNotSupportedException
-