Arc
Overview
Arc is a class in Aspose.Pdf FOSS for Java.
Inherits from: Shape.
Represents an arc drawing shape.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
posX | float | Read | Gets the x-coordinate of the center. |
posY | float | Read | Gets the y-coordinate of the center. |
radius | float | Read | Gets the radius. |
startAngle | float | Read | Gets the start angle in degrees. |
endAngle | float | Read | Gets the end angle in degrees. |
graphInfo | GraphInfo | Read | Gets the graphic styling properties for this shape. |
text | String | Read | Gets the optional text label associated with this shape. |
Methods
| Signature | Description |
|---|---|
Arc(posX: float, posY: float, radius: float, startAngle: float, endAngle: float) | Creates a new arc with the specified center, radius, and angular range. |
getPosX() → float | Gets the x-coordinate of the center. |
setPosX(posX: float) | Sets the x-coordinate of the center. |
getPosY() → float | Gets the y-coordinate of the center. |
setPosY(posY: float) | Sets the y-coordinate of the center. |
getRadius() → float | Gets the radius. |
setRadius(radius: float) | Sets the radius. |
getStartAngle() → float | Gets the start angle in degrees. |
setStartAngle(startAngle: float) | Sets the start angle in degrees. |
getEndAngle() → float | Gets the end angle in degrees. |
setEndAngle(endAngle: float) | Sets the end angle in degrees. |
checkBounds(width: double, height: double) | {@inheritDoc} |
Computes the actual bounding box of the arc by evaluating the endpoints and any axis-aligned extrema that fall within the angular range. | | `getGraphInfo()` → `GraphInfo` | Gets the graphic styling properties for this shape. | | `setGraphInfo(graphInfo: GraphInfo)` | Sets the graphic styling properties for this shape. | | `getText()` → `String` | Gets the optional text label associated with this shape. | | `setText(text: String)` | Sets the optional text label associated with this shape. |