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.

This class provides 6 methods for working with ShapeCollection objects in Java programs. Available methods include: ShapeCollection, add, getBoundsCheckMode, getContainerHeight, getContainerWidth, updateBoundsCheckMode. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: boundsCheckMode, containerHeight, containerWidth.

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

 English