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

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

 English