Shape

Overview

Shape is a class in Aspose.Pdf FOSS for Java.

Abstract base class for all drawing shapes in the PDF drawing API.

Properties

NameTypeAccessDescription
graphInfoGraphInfoReadGets the graphic styling properties for this shape.
textStringReadGets the optional text label associated with this shape.

Methods

SignatureDescription
getGraphInfo()GraphInfoGets the graphic styling properties for this shape.
setGraphInfo(graphInfo: GraphInfo)Sets the graphic styling properties for this shape.
getText()StringGets 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.

See Also