Java java.awt.geom Arc2D fields, constructors, methods, implement or subclass

Example usage for Java java.awt.geom Arc2D fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.geom Arc2D.

The text is from its open source code.

Field

intOPEN
The closure type for an open arc with no path segments connecting the two ends of the arc segment.
intCHORD
The closure type for an arc closed by drawing a straight line segment from the start of the arc segment to the end of the arc segment.
intPIE
The closure type for an arc closed by drawing straight line segments from the start of the arc segment to the center of the full ellipse and from that point to the end of the arc segment.

Method

booleancontains(double x, double y, double w, double h)
Determines whether or not the interior of the arc entirely contains the specified rectangle.
booleancontains(double x, double y)
Determines whether or not the specified point is inside the boundary of the arc.
booleancontains(Rectangle2D r)
Determines whether or not the interior of the arc entirely contains the specified rectangle.
booleancontainsAngle(double angle)
Determines whether or not the specified angle is within the angular extents of the arc.
booleanequals(Object obj)
Determines whether or not the specified Object is equal to this Arc2D .
doublegetAngleExtent()
Returns the angular extent of the arc.
doublegetAngleStart()
Returns the starting angle of the arc.
intgetArcType()
Returns the arc closure type of the arc: #OPEN , #CHORD , or #PIE .
Rectangle2DgetBounds2D()
Returns the high-precision framing rectangle of the arc.
doublegetCenterX()
Returns the X coordinate of the center of the framing rectangle of the Shape in double precision.
doublegetCenterY()
Returns the Y coordinate of the center of the framing rectangle of the Shape in double precision.
Point2DgetEndPoint()
Returns the ending point of the arc.
Rectangle2DgetFrame()
Returns the framing Rectangle2D that defines the overall shape of this object.
doublegetHeight()
Returns the height of the framing rectangle in double precision.
PathIteratorgetPathIterator(AffineTransform at)
Returns an iteration object that defines the boundary of the arc.
Point2DgetStartPoint()
Returns the starting point of the arc.
doublegetWidth()
Returns the width of the framing rectangle in double precision.
doublegetX()
Returns the X coordinate of the upper-left corner of the framing rectangle in double precision.
doublegetY()
Returns the Y coordinate of the upper-left corner of the framing rectangle in double precision.
inthashCode()
Returns the hashcode for this Arc2D .
booleanintersects(double x, double y, double w, double h)
Determines whether or not the interior of the arc intersects the interior of the specified rectangle.
voidsetAngleExtent(double angExt)
Sets the angular extent of this arc to the specified double value.
voidsetAngles(double x1, double y1, double x2, double y2)
Sets the starting angle and angular extent of this arc using two sets of coordinates.
voidsetAngles(Point2D p1, Point2D p2)
Sets the starting angle and angular extent of this arc using two points.
voidsetAngleStart(double angSt)
Sets the starting angle of this arc to the specified double value.
voidsetAngleStart(Point2D p)
Sets the starting angle of this arc to the angle that the specified point defines relative to the center of this arc.
voidsetArc(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.
voidsetArc(Rectangle2D rect, double angSt, double angExt, int closure)
Sets the location, size, angular extents, and closure type of this arc to the specified values.
voidsetArc(Point2D loc, Dimension2D size, double angSt, double angExt, int closure)
Sets the location, size, angular extents, and closure type of this arc to the specified values.
voidsetArc(Arc2D a)
Sets this arc to be the same as the specified arc.
voidsetArcByCenter(double x, double y, double radius, double angSt, double angExt, int closure)
Sets the position, bounds, angular extents, and closure type of this arc to the specified values.
voidsetArcByTangent(Point2D p1, Point2D p2, Point2D p3, double radius)
Sets the position, bounds, and angular extents of this arc to the specified value.
voidsetArcType(int type)
Sets the closure type of this arc to the specified value: OPEN , CHORD , or PIE .
voidsetFrame(double x, double y, double w, double h)
Note that the arc partially inscribes the framing rectangle of this RectangularShape .
voidsetFrameFromDiagonal(Point2D p1, Point2D p2)
Sets the diagonal of the framing rectangle of this Shape based on two specified Point2D objects.