Class java.awt.geom.Arc2D.Double
java.lang.Object
|
+----java.awt.geom.RectangularShape
|
+----java.awt.geom.Arc2D
|
+----java.awt.geom.Arc2D.Double
- public static class Arc2D.Double
- extends Arc2D
An arc specified in double precision,
Field Summary
|
double
|
extent
The angular extent of the arc in degrees.
|
double
|
height
The overall height of the full ellipse (not considering the
angular extents).
|
double
|
start
The starting angle of the arc in degrees.
|
double
|
width
The overall width of the full ellipse (not considering the
angular extents).
|
double
|
x
The x coordinate of the upper left corner of the arc.
|
double
|
y
The y coordinate of the upper left corner of the arc.
|
Constructor Summary
|
Arc2D.Double()
Constructs a new OPEN arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0).
|
Arc2D.Double(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.
|
Arc2D.Double(double x,
double y,
double w,
double h,
double start,
double extent,
int type)
Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
|
Arc2D.Double(Rectangle2D ellipseBounds,
double start,
double extent,
int type)
Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
|
Method Summary
|
double
|
getAngleExtent()
Returns the arc length (angular extent) of the arc (in degrees).
|
double
|
getAngleStart()
Returns the starting angle of the arc (in degrees).
|
double
|
getHeight()
Returns the overall height of the arc in double precision.
|
double
|
getWidth()
Returns the overall width of the arc in double precision.
|
double
|
getX()
Returns the X coordinate of the upper left corner of the arc
in double precision.
|
double
|
getY()
Returns the Y coordinate of the upper left corner of the arc
in double precision.
|
boolean
|
isEmpty()
Determines whether the rectangular shape is empty.
|
Rectangle2D
|
makeBounds(double x,
double y,
double w,
double h)
Return the high precision bounding box of the shape.
|
void
|
setAngleExtent(double angExt)
Sets the angular extent of this arc to the specified double
value (in degrees).
|
void
|
setAngleStart(double angSt)
Sets the starting angle of this arc to the specified double
value (in degrees).
|
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.
|
Methods inherited from class java.awt.geom.Arc2D
|
contains, contains, contains, containsAngle, getAngleExtent, getAngleStart, getArcType, getBounds2D, getEndPoint, getPathIterator, getStartPoint, intersects, makeBounds, normalizeDegrees, setAngleExtent, setAngles, setAngles, setAngleStart, setAngleStart, setArc, setArc, setArc, setArc, setArcByCenter, setArcByTangent, setArcType, setBounds, toDegrees, toRadians |
Methods inherited from class java.awt.geom.RectangularShape
|
clone, contains, contains, getBottom, getBounds, getCenterX, getCenterY, getHeight, getLeft, getPathIterator, getRight, getTop, getWidth, getX, getY, intersects, isEmpty, setBounds, setBounds, setBounds, setBoundsFromCenter, setBoundsFromCenter, setBoundsFromDiagonal, setBoundsFromDiagonal |
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public double x
- The x coordinate of the upper left corner of the arc.
y
public double y
- The y coordinate of the upper left corner of the arc.
width
public double width
- The overall width of the full ellipse (not considering the
angular extents).
height
public double height
- The overall height of the full ellipse (not considering the
angular extents).
start
public double start
- The starting angle of the arc in degrees.
extent
public double extent
- The angular extent of the arc in degrees.
Arc2D.Double
public Arc2D.Double()
- Constructs a new OPEN arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0).
Arc2D.Double
public Arc2D.Double(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.
Arc2D.Double
public Arc2D.Double(double x,
double y,
double w,
double h,
double start,
double extent,
int type)
- Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
Arc2D.Double
public Arc2D.Double(Rectangle2D ellipseBounds,
double start,
double extent,
int type)
- Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
getX
public double getX()
- Returns the X coordinate of the upper left corner of the arc
in double precision.
- Overrides:
- getX in class RectangularShape
getY
public double getY()
- Returns the Y coordinate of the upper left corner of the arc
in double precision.
- Overrides:
- getY in class RectangularShape
getWidth
public double getWidth()
- Returns the overall width of the arc in double precision.
- Overrides:
- getWidth in class RectangularShape
getHeight
public double getHeight()
- Returns the overall height of the arc in double precision.
- Overrides:
- getHeight in class RectangularShape
getAngleStart
public double getAngleStart()
- Returns the starting angle of the arc (in degrees).
- Overrides:
- getAngleStart in class Arc2D
getAngleExtent
public double getAngleExtent()
- Returns the arc length (angular extent) of the arc (in degrees).
- Overrides:
- getAngleExtent in class Arc2D
isEmpty
public boolean isEmpty()
- Determines whether the rectangular shape is empty.
- Overrides:
- isEmpty in class RectangularShape
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
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
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
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
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.