ShapeCollection

ShapeCollection

Overview

ShapeCollection is a class in Aspose.Pdf FOSS for Java. Inherits from: ArrayList<Shape>.

A collection of {@link Shape} objects with optional bounds checking.

Properties

NameTypeAccessDescription
boundsCheckModeBoundsCheckModeReadGets the current bounds check mode.
containerWidthdoubleReadGets the container width used for bounds checking.
containerHeightdoubleReadGets the container height used for bounds checking.

Methods

SignatureDescription
ShapeCollection(width: double, height: double)Creates a new shape collection with the specified container dimensions.
getBoundsCheckMode()BoundsCheckModeGets the current bounds check mode.
updateBoundsCheckMode(mode: BoundsCheckMode)Updates the bounds check mode for this collection.
getContainerWidth()doubleGets the container width used for bounds checking.
getContainerHeight()doubleGets the container height used for bounds checking.
add(shape: Shape)booleanAdds a shape to this collection.

See Also