Shape
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.drawing.Shape
All Implemented Interfaces: IBoundsCheckableItem
public abstract class Shape extends Object implements IBoundsCheckableItem
Represents shape - the base graphics object.
Constructors
| Constructor | Description |
|---|---|
| Shape |
Methods
| Method | Description |
|---|---|
| checkBounds | Checks if the item fits within the given container dimensions (inclusive). |
| getGraphInfo | Gets object that indicates the graph info,such as color, line width,etc. |
| getText | Gets or sets a text for shape |
| setGraphInfo | Sets object that indicates the graph info,such as color, line width,etc. |
| setText | Gets or sets a text for shape |
Shape
public Shape()
checkBounds
public boolean checkBounds(double containerWidth, double containerHeight)
Checks if the item fits within the given container dimensions (inclusive).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| containerWidth | ||
| containerHeight |
Returns: True if fits; otherwise, false.
getGraphInfo
public GraphInfo getGraphInfo()
Gets object that indicates the graph info,such as color, line width,etc.
Returns: object that indicates the graph info.
getText
public TextFragment getText()
Gets or sets a text for shape
Returns: TextFragment object
setGraphInfo
Sets object that indicates the graph info,such as color, line width,etc.
setText
Gets or sets a text for shape