| java.lang.Object java.awt.geom.RectangularShape java.awt.geom.Ellipse2D
Ellipse2D | abstract public class Ellipse2D extends RectangularShape (Code) | | The Ellipse2D class describes an ellipse that is defined
by a framing rectangle.
This class is only the abstract superclass for all objects which
store a 2D ellipse.
The actual storage representation of the coordinates is left to
the subclass.
version: 1.26, 05/05/07 author: Jim Graham since: 1.2 |
Constructor Summary | |
protected | Ellipse2D() This is an abstract class that cannot be instantiated directly. |
Method Summary | |
public boolean | contains(double x, double y) | public boolean | contains(double x, double y, double w, double h) | public boolean | equals(Object obj) Determines whether or not the specified Object is
equal to this Ellipse2D . | public PathIterator | getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of this
Ellipse2D . | public int | hashCode() Returns the hashcode for this Ellipse2D . | public boolean | intersects(double x, double y, double w, double h) |
Ellipse2D | protected Ellipse2D()(Code) | | This is an abstract class that cannot be instantiated directly.
Type-specific implementation subclasses are available for
instantiation and provide a number of formats for storing
the information necessary to satisfy the various accessor
methods below.
See Also: java.awt.geom.Ellipse2D.Float See Also: java.awt.geom.Ellipse2D.Double since: 1.2 |
contains | public boolean contains(double x, double y)(Code) | | since: 1.2 |
contains | public boolean contains(double x, double y, double w, double h)(Code) | | since: 1.2 |
equals | public boolean equals(Object obj)(Code) | | Determines whether or not the specified Object is
equal to this Ellipse2D . The specified
Object is equal to this Ellipse2D
if it is an instance of Ellipse2D and if its
location and size are the same as this Ellipse2D .
Parameters: obj - an Object to be compared with thisEllipse2D . true if obj is an instanceof Ellipse2D and has the same values;false otherwise. since: 1.6 |
getPathIterator | public PathIterator getPathIterator(AffineTransform at)(Code) | | Returns an iteration object that defines the boundary of this
Ellipse2D .
The iterator for this class is multi-threaded safe, which means
that this Ellipse2D class guarantees that
modifications to the geometry of this Ellipse2D
object do not affect any iterations of that geometry that
are already in process.
Parameters: at - an optional AffineTransform to be applied tothe coordinates as they are returned in the iteration, ornull if untransformed coordinates are desired the PathIterator object that returns thegeometry of the outline of this Ellipse2D ,one segment at a time. since: 1.2 |
hashCode | public int hashCode()(Code) | | Returns the hashcode for this Ellipse2D .
the hashcode for this Ellipse2D . since: 1.6 |
intersects | public boolean intersects(double x, double y, double w, double h)(Code) | | since: 1.2 |
Methods inherited from java.awt.geom.RectangularShape | public Object clone()(Code)(Java Doc) public boolean contains(Point2D p)(Code)(Java Doc) public boolean contains(Rectangle2D r)(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public double getCenterX()(Code)(Java Doc) public double getCenterY()(Code)(Java Doc) public Rectangle2D getFrame()(Code)(Java Doc) abstract public double getHeight()(Code)(Java Doc) public double getMaxX()(Code)(Java Doc) public double getMaxY()(Code)(Java Doc) public double getMinX()(Code)(Java Doc) public double getMinY()(Code)(Java Doc) public PathIterator getPathIterator(AffineTransform at, double flatness)(Code)(Java Doc) abstract public double getWidth()(Code)(Java Doc) abstract public double getX()(Code)(Java Doc) abstract public double getY()(Code)(Java Doc) public boolean intersects(Rectangle2D r)(Code)(Java Doc) abstract public boolean isEmpty()(Code)(Java Doc) abstract public void setFrame(double x, double y, double w, double h)(Code)(Java Doc) public void setFrame(Point2D loc, Dimension2D size)(Code)(Java Doc) public void setFrame(Rectangle2D r)(Code)(Java Doc) public void setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY)(Code)(Java Doc) public void setFrameFromCenter(Point2D center, Point2D corner)(Code)(Java Doc) public void setFrameFromDiagonal(double x1, double y1, double x2, double y2)(Code)(Java Doc) public void setFrameFromDiagonal(Point2D p1, Point2D p2)(Code)(Java Doc)
|
|
|