Class java.awt.geom.Ellipse2D.Double
java.lang.Object
|
+----java.awt.geom.RectangularShape
|
+----java.awt.geom.Ellipse2D
|
+----java.awt.geom.Ellipse2D.Double
- public static class Ellipse2D.Double
- extends Ellipse2D
An ellipse specified in double precision.
Field Summary
|
double
|
height
The overall height of the ellipse.
|
double
|
width
The overall width of the ellipse.
|
double
|
x
The x coordinate of the upper left corner of the ellipse.
|
double
|
y
The y coordinate of the upper left corner of the ellipse.
|
Constructor Summary
|
Ellipse2D.Double()
Constructs a new ellipse, initialized to location (0, 0) and
size (0, 0).
|
Ellipse2D.Double(double x,
double y,
double w,
double h)
Constructs and initializes an ellipse from the specified coordinates.
|
Method Summary
|
Rectangle2D
|
getBounds2D()
Return the high precision bounding box of the shape.
|
double
|
getHeight()
Returns the overall height of the ellipse in double precision.
|
double
|
getWidth()
Returns the overall width of the ellipse in double precision.
|
double
|
getX()
Returns the X coordinate of the upper left corner of the ellipse
in double precision.
|
double
|
getY()
Returns the Y coordinate of the upper left corner of the ellipse
in double precision.
|
boolean
|
isEmpty()
Determines whether the rectangular shape is empty.
|
void
|
setBounds(double x,
double y,
double w,
double h)
Sets the location and size of this ellipse to the specified
double values.
|
Methods inherited from class java.awt.geom.RectangularShape
|
clone, contains, contains, getBottom, getBounds, getCenterX, getCenterY, getHeight, getLeft, getPathIterator, getRight, getTop, getWidth, getX, getY, intersects, isEmpty, setBounds, setBounds, setBounds, setBoundsFromCenter, setBoundsFromCenter, setBoundsFromDiagonal, setBoundsFromDiagonal |
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public double x
- The x coordinate of the upper left corner of the ellipse.
y
public double y
- The y coordinate of the upper left corner of the ellipse.
width
public double width
- The overall width of the ellipse.
height
public double height
- The overall height of the ellipse.
Ellipse2D.Double
public Ellipse2D.Double()
- Constructs a new ellipse, initialized to location (0, 0) and
size (0, 0).
Ellipse2D.Double
public Ellipse2D.Double(double x,
double y,
double w,
double h)
- Constructs and initializes an ellipse from the specified coordinates.
- Parameters:
x
- the x coordinate
y
- the y coordinate
width
- the width of the rectangle
height
- the height of the rectangle
getX
public double getX()
- Returns the X coordinate of the upper left corner of the ellipse
in double precision.
- Overrides:
- getX in class RectangularShape
getY
public double getY()
- Returns the Y coordinate of the upper left corner of the ellipse
in double precision.
- Overrides:
- getY in class RectangularShape
getWidth
public double getWidth()
- Returns the overall width of the ellipse in double precision.
- Overrides:
- getWidth in class RectangularShape
getHeight
public double getHeight()
- Returns the overall height of the ellipse in double precision.
- Overrides:
- getHeight in class RectangularShape
isEmpty
public boolean isEmpty()
- Determines whether the rectangular shape is empty.
- Overrides:
- isEmpty in class RectangularShape
setBounds
public void setBounds(double x,
double y,
double w,
double h)
- Sets the location and size of this ellipse to the specified
double values.
- Overrides:
- setBounds in class RectangularShape
getBounds2D
public Rectangle2D getBounds2D()
- Return the high precision bounding box of the shape.
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.