java.awt.geom
Class Arc2D.Float
java.lang.Object
|
+--java.awt.geom.RectangularShape
|
+--java.awt.geom.Arc2D
|
+--java.awt.geom.Arc2D.Float
public static class
Arc2D.Floatextends
Arc2D This class implements an arc in float precision.
Since:Author:- Eric Blake <ebb9@email.byu.edu
extent
public float extent
The extent angle of this arc, in degrees.
height
public float height
The height of the box bounding the ellipse of this arc.
start
public float start
The start angle of this arc, in degrees.
width
public float width
The width of the box bounding the ellipse of this arc.
x
public float x
The x coordinate of the box bounding the ellipse of this arc.
y
public float y
The y coordinate of the box bounding the ellipse of this arc.
Float
public Float()
Create a new, open arc at (0,0) with 0 extent.
Float
public Float(float x, float y, float w, float h, float start, float extent, int type)
Create a new arc with the given dimensions.
Parameters:
Throws:
Float
public Float(int type)
Create a new arc of the given type at (0,0) with 0 extent.
Parameters:
Throws:
Float
public Float(java.awt.geom.Rectangle2D r, float start, float extent, int type)
Create a new arc with the given dimensions.
Parameters:
Throws:
getAngleExtent
public double getAngleExtent()
Return the extent of the arc, in degrees.
Returns:
getAngleStart
public double getAngleStart()
Return the start angle of the arc, in degrees.
Returns:
getHeight
public double getHeight()
Return the height of the bounding box.
Returns:
getWidth
public double getWidth()
Return the width of the bounding box.
Returns:
getX
public double getX()
Return the x coordinate of the bounding box.
Returns:
getY
public double getY()
Return the y coordinate of the bounding box.
Returns:
isEmpty
public boolean isEmpty()
Tests if the arc contains points.
Returns:
- true if the arc has no interior
makeBounds
protected Rectangle2D makeBounds(double x, double y, double w, double h)
Creates a tight bounding box given dimensions that more precise than
the bounding box of the ellipse.
Parameters:
setAngleExtent
public void setAngleExtent(double extent)
Sets the extent angle of the arc.
Parameters:
setAngleStart
public void setAngleStart(double start)
Sets the start angle of the arc.
Parameters:
setArc
public void setArc(double x, double y, double w, double h, double start, double extent, int type)
Sets the arc to the given dimensions.
Parameters:
Throws: