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
| Name | Type | Access | Description |
|---|---|---|---|
boundsCheckMode | BoundsCheckMode | Read | Gets the current bounds check mode. |
containerWidth | double | Read | Gets the container width used for bounds checking. |
containerHeight | double | Read | Gets the container height used for bounds checking. |
Methods
| Signature | Description |
|---|---|
ShapeCollection(width: double, height: double) | Creates a new shape collection with the specified container dimensions. |
getBoundsCheckMode() → BoundsCheckMode | Gets the current bounds check mode. |
updateBoundsCheckMode(mode: BoundsCheckMode) | Updates the bounds check mode for this collection. |
getContainerWidth() → double | Gets the container width used for bounds checking. |
getContainerHeight() → double | Gets the container height used for bounds checking. |
add(shape: Shape) → boolean | Adds a shape to this collection. |