All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.geom.Ellipse2D.Float
java.lang.Object
|
+----java.awt.geom.RectangularShape
|
+----java.awt.geom.Ellipse2D
|
+----java.awt.geom.Ellipse2D.Float
- public static class Ellipse2D.Float
- extends Ellipse2D
An ellipse specified in float precision.
height- The overall height of the ellipse.
width- The overall width of the ellipse.
x- The x coordinate of the upper left corner of the ellipse.
y- The y coordinate of the upper left corner of the ellipse.
Ellipse2D.Float()
- Constructs a new ellipse, initialized to location (0, 0) and
size (0, 0).
Ellipse2D.Float(float, float, float, float)
- Constructs and initializes an ellipse from the specified coordinates.
getBounds2D()
- Return the high precision bounding box of the shape.
getHeight()
- Returns the overall height of the ellipse in double precision.
getWidth()
- Returns the overall width of the ellipse in double precision.
getX()
- Returns the X coordinate of the upper left corner of the ellipse
in double precision.
getY()
- Returns the Y coordinate of the upper left corner of the ellipse
in double precision.
isEmpty()
- Determines whether the rectangular shape is empty.
setBounds(double, double, double, double)
- Sets the location and size of this ellipse to the specified
float values.
setBounds(float, float, float, float)
- Sets the location and size of this ellipse to the specified
float values.
x
public float x
- The x coordinate of the upper left corner of the ellipse.
y
public float y
- The y coordinate of the upper left corner of the ellipse.
width
public float width
- The overall width of the ellipse.
height
public float height
- The overall height of the ellipse.
Ellipse2D.Float
public Ellipse2D.Float()
- Constructs a new ellipse, initialized to location (0, 0) and
size (0, 0).
Ellipse2D.Float
public Ellipse2D.Float(float x,
float y,
float w,
float 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(float x,
float y,
float w,
float h)
- Sets the location and size of this ellipse to the specified
float values.
setBounds
public void setBounds(double x,
double y,
double w,
double h)
- Sets the location and size of this ellipse to the specified
float values.
- Overrides:
- setBounds in class RectangularShape
getBounds2D
public Rectangle2D getBounds2D()
- Return the high precision bounding box of the shape.
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature