Shape
Overview
Shape is a class in Aspose.PDF FOSS for Java.
Abstract base class for all drawing shapes in the PDF drawing API.
This class provides 5 methods for working with Shape objects in Java programs.
Available methods include: checkBounds, getGraphInfo, getText, setGraphInfo, setText.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: graphInfo, text.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
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 |
|---|---|
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. |
checkBounds(width: double, height: double) | Checks whether this shape fits within the specified container bounds. |