All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.geom.Arc2D.Float

java.lang.Object
    |
    +----java.awt.geom.RectangularShape
            |
            +----java.awt.geom.Arc2D
                    |
                    +----java.awt.geom.Arc2D.Float

public static class Arc2D.Float
extends Arc2D
An arc specified in float precision,


Variable Index

 o extent
The angular extent of the arc in degrees.
 o height
The overall height of the full ellipse (not considering the angular extents).
 o start
The starting angle of the arc in degrees.
 o width
The overall width of the full ellipse (not considering the angular extents).
 o x
The x coordinate of the upper left corner of the arc.
 o y
The y coordinate of the upper left corner of the arc.

Constructor Index

 o Arc2D.Float()
Constructs a new OPEN arc, initialized to location (0, 0), size (0, 0), angular extents (start = 0, extent = 0).
 o Arc2D.Float(float, float, float, float, float, float, int)
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.
 o Arc2D.Float(int)
Constructs a new arc, initialized to location (0, 0), size (0, 0), angular extents (start = 0, extent = 0), and the specified closure type.
 o Arc2D.Float(Rectangle2D, float, float, int)
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.

Method Index

 o getAngleExtent()
Returns the arc length (angular extent) of the arc (in degrees).
 o getAngleStart()
Returns the starting angle of the arc (in degrees).
 o getHeight()
Returns the overall height of the arc in double precision.
 o getWidth()
Returns the overall width of the arc in double precision.
 o getX()
Returns the X coordinate of the upper left corner of the arc in double precision.
 o getY()
Returns the Y coordinate of the upper left corner of the arc in double precision.
 o isEmpty()
Determines whether the rectangular shape is empty.
 o makeBounds(double, double, double, double)
Return the high precision bounding box of the shape.
 o setAngleExtent(double)
Sets the angular extent of this arc to the specified double value (in degrees).
 o setAngleStart(double)
Sets the starting angle of this arc to the specified double value (in degrees).
 o setArc(double, double, double, double, double, double, int)
Sets the location, size, angular extents, and closure type of this arc to the specified double values.

Variables

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

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

 o width
public float width
The overall width of the full ellipse (not considering the angular extents).

 o height
public float height
The overall height of the full ellipse (not considering the angular extents).

 o start
public float start
The starting angle of the arc in degrees.

 o extent
public float extent
The angular extent of the arc in degrees.

Constructors

 o Arc2D.Float
public Arc2D.Float()
Constructs a new OPEN arc, initialized to location (0, 0), size (0, 0), angular extents (start = 0, extent = 0).

 o Arc2D.Float
public Arc2D.Float(int type)
Constructs a new arc, initialized to location (0, 0), size (0, 0), angular extents (start = 0, extent = 0), and the specified closure type.

 o Arc2D.Float
public Arc2D.Float(float x,
                   float y,
                   float w,
                   float h,
                   float start,
                   float extent,
                   int type)
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.

 o Arc2D.Float
public Arc2D.Float(Rectangle2D ellipseBounds,
                   float start,
                   float extent,
                   int type)
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.

Methods

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

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

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

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

Overrides:
getHeight in class RectangularShape
 o getAngleStart
public double getAngleStart()
Returns the starting angle of the arc (in degrees).

Overrides:
getAngleStart in class Arc2D
 o getAngleExtent
public double getAngleExtent()
Returns the arc length (angular extent) of the arc (in degrees).

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

Overrides:
isEmpty in class RectangularShape
 o setArc
public void setArc(double x,
                   double y,
                   double w,
                   double h,
                   double angSt,
                   double angExt,
                   int closure)
Sets the location, size, angular extents, and closure type of this arc to the specified double values.

Overrides:
setArc in class Arc2D
 o setAngleStart
public void setAngleStart(double angSt)
Sets the starting angle of this arc to the specified double value (in degrees).

Overrides:
setAngleStart in class Arc2D
 o setAngleExtent
public void setAngleExtent(double angExt)
Sets the angular extent of this arc to the specified double value (in degrees).

Overrides:
setAngleExtent in class Arc2D
 o makeBounds
public Rectangle2D makeBounds(double x,
                              double y,
                              double w,
                              double h)
Return the high precision bounding box of the shape.

Overrides:
makeBounds in class Arc2D

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature