public abstract class Shape extends Object implements IBoundsCheckableItem
Represents shape - the base graphics object.
| Constructor and Description |
|---|
Shape() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBounds(double containerWidth,
double containerHeight)
Checks if the item fits within the given container dimensions (inclusive).
|
GraphInfo |
getGraphInfo()
Gets object that indicates the graph info,such as color, line width,etc.
|
TextFragment |
getText()
Gets or sets a text for shape
|
void |
setGraphInfo(GraphInfo value)
Sets object that indicates the graph info,such as color, line width,etc.
|
void |
setText(TextFragment value)
Gets or sets a text for shape
|
public GraphInfo getGraphInfo()
Gets object that indicates the graph info,such as color, line width,etc.
public void setGraphInfo(GraphInfo value)
Sets object that indicates the graph info,such as color, line width,etc.
value - that indicates the graph info.public TextFragment getText()
Gets or sets a text for shape
public void setText(TextFragment value)
Gets or sets a text for shape
value - TextFragment objectpublic boolean checkBounds(double containerWidth,
double containerHeight)
IBoundsCheckableItemChecks if the item fits within the given container dimensions (inclusive).
checkBounds in interface IBoundsCheckableItemcontainerWidth - Width of the container.containerHeight - Height of the container.Copyright © 2025 Aspose. All Rights Reserved.