java.awt.geom
public static class Arc2D.Double extends Arc2D
Since: 1.2
Field Summary | |
---|---|
double | extent The extent angle of this arc, in degrees. |
double | height The height of the box bounding the ellipse of this arc. |
double | start The start angle of this arc, in degrees. |
double | width The width of the box bounding the ellipse of this arc. |
double | x The x coordinate of the box bounding the ellipse of this arc. |
double | y The y coordinate of the box bounding the ellipse of this arc. |
Constructor Summary | |
---|---|
Double()
Create a new, open arc at (0,0) with 0 extent. | |
Double(int type)
Create a new arc of the given type at (0,0) with 0 extent.
| |
Double(double x, double y, double w, double h, double start, double extent, int type)
Create a new arc with the given dimensions.
| |
Double(Rectangle2D r, double start, double extent, int type)
Create a new arc with the given dimensions.
|
Method Summary | |
---|---|
double | getAngleExtent()
Return the extent of the arc, in degrees.
|
double | getAngleStart()
Return the start angle of the arc, in degrees.
|
double | getHeight()
Return the height of the bounding box.
|
double | getWidth()
Return the width of the bounding box.
|
double | getX()
Return the x coordinate of the bounding box.
|
double | getY()
Return the y coordinate of the bounding box.
|
boolean | isEmpty()
Tests if the arc contains points.
|
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.
|
void | setAngleExtent(double extent)
Sets the extent angle of the arc.
|
void | setAngleStart(double start)
Sets the start angle of the arc.
|
void | setArc(double x, double y, double w, double h, double start, double extent, int type)
Sets the arc to the given dimensions.
|
Parameters: type the arc type: {@link #OPEN}, {@link #CHORD}, or {@link #PIE}
Throws: IllegalArgumentException if type is invalid
Parameters: x the x coordinate y the y coordinate w the width h the height start the start angle, in degrees extent the extent, in degrees type the arc type: {@link #OPEN}, {@link #CHORD}, or {@link #PIE}
Throws: IllegalArgumentException if type is invalid
Parameters: r the bounding box start the start angle, in degrees extent the extent, in degrees type the arc type: {@link #OPEN}, {@link #CHORD}, or {@link #PIE}
Throws: IllegalArgumentException if type is invalid NullPointerException if r is null
Returns: the value of extent
Returns: the value of start
Returns: the value of height
Returns: the value of width
Returns: the value of x
Returns: the value of y
Returns: true if the arc has no interior
Parameters: x the x coordinate y the y coordinate w the width h the height
Parameters: extent the new extent angle
Parameters: start the new start angle
Parameters: x the x coordinate y the y coordinate w the width h the height start the start angle, in degrees extent the extent, in degrees type the arc type: {@link #OPEN}, {@link #CHORD}, or {@link #PIE}
Throws: IllegalArgumentException if type is invalid