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.


Variable Index

 o height
The overall height of the ellipse.
 o width
The overall width of the ellipse.
 o x
The x coordinate of the upper left corner of the ellipse.
 o y
The y coordinate of the upper left corner of the ellipse.

Constructor Index

 o Ellipse2D.Float()
Constructs a new ellipse, initialized to location (0, 0) and size (0, 0).
 o Ellipse2D.Float(float, float, float, float)
Constructs and initializes an ellipse from the specified coordinates.

Method Index

 o getBounds2D()
Return the high precision bounding box of the shape.
 o getHeight()
Returns the overall height of the ellipse in double precision.
 o getWidth()
Returns the overall width of the ellipse in double precision.
 o getX()
Returns the X coordinate of the upper left corner of the ellipse in double precision.
 o getY()
Returns the Y coordinate of the upper left corner of the ellipse in double precision.
 o isEmpty()
Determines whether the rectangular shape is empty.
 o setBounds(double, double, double, double)
Sets the location and size of this ellipse to the specified float values.
 o setBounds(float, float, float, float)
Sets the location and size of this ellipse to the specified float values.

Variables

 o x
public float x
The x coordinate of the upper left corner of the ellipse.

 o y
public float y
The y coordinate of the upper left corner of the ellipse.

 o width
public float width
The overall width of the ellipse.

 o height
public float height
The overall height of the ellipse.

Constructors

 o Ellipse2D.Float
public Ellipse2D.Float()
Constructs a new ellipse, initialized to location (0, 0) and size (0, 0).

 o 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

Methods

 o getX
public double getX()
Returns the X coordinate of the upper left corner of the ellipse in double precision.

Overrides:
getX in class RectangularShape
 o getY
public double getY()
Returns the Y coordinate of the upper left corner of the ellipse in double precision.

Overrides:
getY in class RectangularShape
 o getWidth
public double getWidth()
Returns the overall width of the ellipse in double precision.

Overrides:
getWidth in class RectangularShape
 o getHeight
public double getHeight()
Returns the overall height of the ellipse in double precision.

Overrides:
getHeight in class RectangularShape
 o isEmpty
public boolean isEmpty()
Determines whether the rectangular shape is empty.

Overrides:
isEmpty in class RectangularShape
 o 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.

 o 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
 o 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