Class PDAppearanceStream
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceStream
- All Implemented Interfaces:
COSObjectable
This class represents an appearance for an annotation.
- Version:
- $Revision: 1.4 $
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the bounding box for this appearance.Convert this standard java object to a COS object.Gets the optional matrix for this appearance.This will get the resources for this appearance stream.This will return the underlying stream.void
setBoundingBox
(PDRectangle rectangle) This will set the bounding box for this appearance stream.void
setMatrix
(AffineTransform transform) Sets the optional Matrix entry for this appearance.void
setResources
(PDResources resources) This will set the new resources.
-
Constructor Details
-
PDAppearanceStream
Constructor.- Parameters:
s
- The cos stream for this appearance.
-
-
Method Details
-
getStream
This will return the underlying stream.- Returns:
- The wrapped stream.
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getBoundingBox
Get the bounding box for this appearance. This may return null in which case the Rectangle from the annotation should be used.- Returns:
- The bounding box for this appearance.
-
setBoundingBox
This will set the bounding box for this appearance stream.- Parameters:
rectangle
- The new bounding box.
-
getResources
This will get the resources for this appearance stream.- Returns:
- The appearance stream resources.
-
setResources
This will set the new resources.- Parameters:
resources
- The new resources.
-
getMatrix
Gets the optional matrix for this appearance. This may return null.- Returns:
- The matrix of this appearance.
-
setMatrix
Sets the optional Matrix entry for this appearance.- Parameters:
transform
- the transformation matrix
-