org.gvsig.fmap.geom.primitive
Interface Ellipse

All Superinterfaces:
Comparable, Geometry, OrientablePrimitive, OrientableSurface, Primitive, Serializable, Shape, Surface
All Known Implementing Classes:
Ellipse2D, Ellipse2DZ

public interface Ellipse
extends 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:
Full definition from Wikipedia

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 interface org.gvsig.fmap.geom.Geometry
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
 
Method Summary
 Point getAxis1End()
          Returns the point where the first axis ends.
 Point getAxis1Start()
          Returns the point where the first axis starts.
 double getAxis2Dist()
          Returns the length of the second axis.
 void setPoints(Point axis1Start, Point axis1End, double axis2Length)
          Sets the values to define a ellipse.
 
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, setCoordinateAt, setGeneralPath, 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, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, reProject, touches, transform, union, within
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersects
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

setPoints

void setPoints(Point axis1Start,
               Point axis1End,
               double axis2Length)
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.


Copyright © 2004-2012 gvSIG. All Rights Reserved.