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

ConstructorDescription
Shape

Methods

MethodDescription
checkBoundsChecks if the item fits within the given container dimensions (inclusive).
getGraphInfoGets object that indicates the graph info,such as color, line width,etc.
getTextGets or sets a text for shape
setGraphInfoSets object that indicates the graph info,such as color, line width,etc.
setTextGets 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:

ParameterTypeDescription
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