|
|||||||||
| Home >> All >> java >> awt >> [ geom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt.geom
Class Arc2D.Double

java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Arc2D
java.awt.geom.Arc2D.Double
- All Implemented Interfaces:
- java.lang.Cloneable, java.awt.Shape
- Enclosing class:
- Arc2D
- public static class Arc2D.Double
- extends Arc2D
This class implements an arc in double precision.
- Since:
- 1.2
| Nested Class Summary |
| Nested classes inherited from class java.awt.geom.Arc2D |
Arc2D.ArcIterator, Arc2D.Double, Arc2D.Float |
| 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. |
| Fields inherited from class java.awt.geom.Arc2D |
CHORD, OPEN, PIE, type |
| Constructor Summary | |
Arc2D.Double()
Create a new, open arc at (0,0) with 0 extent. |
|
Arc2D.Double(double x,
double y,
double w,
double h,
double start,
double extent,
int type)
Create a new arc with the given dimensions. |
|
Arc2D.Double(int type)
Create a new arc of the given type at (0,0) with 0 extent. |
|
Arc2D.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. |
| Methods inherited from class java.awt.geom.Arc2D |
contains, contains, contains, containsAngle, getArcType, getBounds2D, getEndPoint, getPathIterator, getStartPoint, intersects, setAngles, setAngles, setAngleStart, setArc, setArc, setArc, setArcByCenter, setArcByTangent, setArcType, setFrame |
| Methods inherited from class java.awt.geom.RectangularShape |
clone, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
x
public double x
- The x coordinate of the box bounding the ellipse of this arc.
y
public double y
- The y coordinate of the box bounding the ellipse of this arc.
width
public double width
- The width of the box bounding the ellipse of this arc.
height
public double height
- The height of the box bounding the ellipse of this arc.
start
public double start
- The start angle of this arc, in degrees.
extent
public double extent
- The extent angle of this arc, in degrees.
| Constructor Detail |
Arc2D.Double
public Arc2D.Double()
- Create a new, open arc at (0,0) with 0 extent.
Arc2D.Double
public Arc2D.Double(int type)
- Create a new arc of the given type at (0,0) with 0 extent.
Arc2D.Double
public Arc2D.Double(double x,
double y,
double w,
double h,
double start,
double extent,
int type)
- Create a new arc with the given dimensions.
Arc2D.Double
public Arc2D.Double(Rectangle2D r, double start, double extent, int type)
- Create a new arc with the given dimensions.
| Method Detail |
getX
public double getX()
- Return the x coordinate of the bounding box.
- Specified by:
getXin classRectangularShape
getY
public double getY()
- Return the y coordinate of the bounding box.
- Specified by:
getYin classRectangularShape
getWidth
public double getWidth()
- Return the width of the bounding box.
- Specified by:
getWidthin classRectangularShape
getHeight
public double getHeight()
- Return the height of the bounding box.
- Specified by:
getHeightin classRectangularShape
getAngleStart
public double getAngleStart()
- Return the start angle of the arc, in degrees.
- Specified by:
getAngleStartin classArc2D
getAngleExtent
public double getAngleExtent()
- Return the extent of the arc, in degrees.
- Specified by:
getAngleExtentin classArc2D
isEmpty
public boolean isEmpty()
- Tests if the arc contains points.
- Specified by:
isEmptyin classRectangularShape
setArc
public void setArc(double x,
double y,
double w,
double h,
double start,
double extent,
int type)
setAngleStart
public void setAngleStart(double start)
- Sets the start angle of the arc.
- Specified by:
setAngleStartin classArc2D
setAngleExtent
public void setAngleExtent(double extent)
- Sets the extent angle of the arc.
- Specified by:
setAngleExtentin classArc2D
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.
- Specified by:
makeBoundsin classArc2D
|
|||||||||
| Home >> All >> java >> awt >> [ geom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC