Java Platform 1.2
Beta 4

Class java.awt.geom.Ellipse2D

java.lang.Object
  |
  +--java.awt.geom.RectangularShape
        |
        +--java.awt.geom.Ellipse2D
Direct Known Subclasses:
Ellipse2D.Double, Ellipse2D.Float

public abstract class Ellipse2D
extends RectangularShape
An ellipse defined by a bounding 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.


Inner Class Summary
static  Ellipse2D.Double
          An ellipse specified in double precision.
static  Ellipse2D.Float
          An ellipse specified in float precision.
 
Constructor Summary
Ellipse2D()
          This is an abstract class that cannot be instantiated directly.
 
Method Summary
 boolean contains(double x, double y, double w, double h)
          Test if the interior of the Shape entirely contains the given Rectangle.
 boolean contains(double x, double y)
          Test if a given Point is inside the boundary of the shape.
 PathIterator getPathIterator(AffineTransform at)
          Return an iteration object that defines the boundary of the shape.
 boolean intersects(double x, double y, double w, double h)
          Test if the interior of the Shape intersects the interior of a given Rectangle.
 
Methods inherited from class java.awt.geom.RectangularShape
clone , contains , contains , getBounds , getCenterX , getCenterY , getFrame , getHeight , getMaxX , getMaxY , getMinX , getMinY , getPathIterator , getWidth , getX , getY , intersects , isEmpty , setFrame , setFrame , setFrame , setFrameFromCenter , setFrameFromCenter , setFrameFromDiagonal , setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

Constructor Detail

Ellipse2D

protected Ellipse2D()
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:
Ellipse2D.Float, Ellipse2D.Double
Method Detail

contains

public boolean contains(double x,
                        double y)
Test if a given Point is inside the boundary of the shape.

intersects

public boolean intersects(double x,
                          double y,
                          double w,
                          double h)
Test if the interior of the Shape intersects the interior of a given Rectangle.

contains

public boolean contains(double x,
                        double y,
                        double w,
                        double h)
Test if the interior of the Shape entirely contains the given Rectangle.

getPathIterator

public PathIterator getPathIterator(AffineTransform at)
Return an iteration object that defines the boundary of the shape.

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.