Arc2D (Java Platform SE 8 ) (original) (raw)

Modifier and Type

Method

Description

boolean

[contains](../../../java/awt/geom/Arc2D.html#contains-double-double-)(double x, double y)

Determines whether or not the specified point is inside the boundary of the arc.

boolean

[contains](../../../java/awt/geom/Arc2D.html#contains-double-double-double-double-)(double x, double y, double w, double h)

Determines whether or not the interior of the arc entirely contains the specified rectangle.

boolean

[contains](../../../java/awt/geom/Arc2D.html#contains-java.awt.geom.Rectangle2D-)([Rectangle2D](../../../java/awt/geom/Rectangle2D.html "class in java.awt.geom") r)

Determines whether or not the interior of the arc entirely contains the specified rectangle.

boolean

[containsAngle](../../../java/awt/geom/Arc2D.html#containsAngle-double-)(double angle)

Determines whether or not the specified angle is within the angular extents of the arc.

boolean

[equals](../../../java/awt/geom/Arc2D.html#equals-java.lang.Object-)([Object](../../../java/lang/Object.html "class in java.lang") obj)

Determines whether or not the specified Object is equal to this Arc2D.

abstract double

[getAngleExtent](../../../java/awt/geom/Arc2D.html#getAngleExtent--)()

Returns the angular extent of the arc.

abstract double

[getAngleStart](../../../java/awt/geom/Arc2D.html#getAngleStart--)()

Returns the starting angle of the arc.

int

[getArcType](../../../java/awt/geom/Arc2D.html#getArcType--)()

Returns the arc closure type of the arc: OPEN,CHORD, or PIE.

[Rectangle2D](../../../java/awt/geom/Rectangle2D.html "class in java.awt.geom")

[getBounds2D](../../../java/awt/geom/Arc2D.html#getBounds2D--)()

Returns the high-precision framing rectangle of the arc.

[Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom")

[getEndPoint](../../../java/awt/geom/Arc2D.html#getEndPoint--)()

Returns the ending point of the arc.

[PathIterator](../../../java/awt/geom/PathIterator.html "interface in java.awt.geom")

[getPathIterator](../../../java/awt/geom/Arc2D.html#getPathIterator-java.awt.geom.AffineTransform-)([AffineTransform](../../../java/awt/geom/AffineTransform.html "class in java.awt.geom") at)

Returns an iteration object that defines the boundary of the arc.

[Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom")

[getStartPoint](../../../java/awt/geom/Arc2D.html#getStartPoint--)()

Returns the starting point of the arc.

int

[hashCode](../../../java/awt/geom/Arc2D.html#hashCode--)()

Returns the hashcode for this Arc2D.

boolean

[intersects](../../../java/awt/geom/Arc2D.html#intersects-double-double-double-double-)(double x, double y, double w, double h)

Determines whether or not the interior of the arc intersects the interior of the specified rectangle.

protected abstract [Rectangle2D](../../../java/awt/geom/Rectangle2D.html "class in java.awt.geom")

[makeBounds](../../../java/awt/geom/Arc2D.html#makeBounds-double-double-double-double-)(double x, double y, double w, double h)

Constructs a Rectangle2D of the appropriate precision to hold the parameters calculated to be the framing rectangle of this arc.

abstract void

[setAngleExtent](../../../java/awt/geom/Arc2D.html#setAngleExtent-double-)(double angExt)

Sets the angular extent of this arc to the specified double value.

void

[setAngles](../../../java/awt/geom/Arc2D.html#setAngles-double-double-double-double-)(double x1, double y1, double x2, double y2)

Sets the starting angle and angular extent of this arc using two sets of coordinates.

void

[setAngles](../../../java/awt/geom/Arc2D.html#setAngles-java.awt.geom.Point2D-java.awt.geom.Point2D-)([Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom") p1,[Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom") p2)

Sets the starting angle and angular extent of this arc using two points.

abstract void

[setAngleStart](../../../java/awt/geom/Arc2D.html#setAngleStart-double-)(double angSt)

Sets the starting angle of this arc to the specified double value.

void

[setAngleStart](../../../java/awt/geom/Arc2D.html#setAngleStart-java.awt.geom.Point2D-)([Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom") p)

Sets the starting angle of this arc to the angle that the specified point defines relative to the center of this arc.

void

[setArc](../../../java/awt/geom/Arc2D.html#setArc-java.awt.geom.Arc2D-)([Arc2D](../../../java/awt/geom/Arc2D.html "class in java.awt.geom") a)

Sets this arc to be the same as the specified arc.

abstract void

[setArc](../../../java/awt/geom/Arc2D.html#setArc-double-double-double-double-double-double-int-)(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.

void

[setArc](../../../java/awt/geom/Arc2D.html#setArc-java.awt.geom.Point2D-java.awt.geom.Dimension2D-double-double-int-)([Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom") loc,[Dimension2D](../../../java/awt/geom/Dimension2D.html "class in java.awt.geom") size, double angSt, double angExt, int closure)

Sets the location, size, angular extents, and closure type of this arc to the specified values.

void

[setArc](../../../java/awt/geom/Arc2D.html#setArc-java.awt.geom.Rectangle2D-double-double-int-)([Rectangle2D](../../../java/awt/geom/Rectangle2D.html "class in java.awt.geom") rect, double angSt, double angExt, int closure)

Sets the location, size, angular extents, and closure type of this arc to the specified values.

void

[setArcByCenter](../../../java/awt/geom/Arc2D.html#setArcByCenter-double-double-double-double-double-int-)(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.

void

[setArcByTangent](../../../java/awt/geom/Arc2D.html#setArcByTangent-java.awt.geom.Point2D-java.awt.geom.Point2D-java.awt.geom.Point2D-double-)([Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom") p1,[Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom") p2,[Point2D](../../../java/awt/geom/Point2D.html "class in java.awt.geom") p3, double radius)

Sets the position, bounds, and angular extents of this arc to the specified value.

void

[setArcType](../../../java/awt/geom/Arc2D.html#setArcType-int-)(int type)

Sets the closure type of this arc to the specified value:OPEN, CHORD, or PIE.

void

[setFrame](../../../java/awt/geom/Arc2D.html#setFrame-double-double-double-double-)(double x, double y, double w, double h)

Sets the location and size of the framing rectangle of thisShape to the specified rectangular values.