Class PDAppearanceStream
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceStream
-
- All Implemented Interfaces:
COSObjectable
public class PDAppearanceStream extends java.lang.Object implements COSObjectable
This class represents an appearance for an annotation.- Version:
- $Revision: 1.4 $
- Author:
- Ben Litchfield
-
-
Constructor Summary
Constructors Constructor Description PDAppearanceStream(COSStream s)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDRectanglegetBoundingBox()Get the bounding box for this appearance.COSBasegetCOSObject()Convert this standard java object to a COS object.MatrixgetMatrix()Gets the optional matrix for this appearance.PDResourcesgetResources()This will get the resources for this appearance stream.COSStreamgetStream()This will return the underlying stream.voidsetBoundingBox(PDRectangle rectangle)This will set the bounding box for this appearance stream.voidsetMatrix(java.awt.geom.AffineTransform transform)Sets the optional Matrix entry for this appearance.voidsetResources(PDResources resources)This will set the new resources.
-
-
-
Constructor Detail
-
PDAppearanceStream
public PDAppearanceStream(COSStream s)
Constructor.- Parameters:
s- The cos stream for this appearance.
-
-
Method Detail
-
getStream
public COSStream getStream()
This will return the underlying stream.- Returns:
- The wrapped stream.
-
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The cos object that matches this Java object.
-
getBoundingBox
public PDRectangle 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
public void setBoundingBox(PDRectangle rectangle)
This will set the bounding box for this appearance stream.- Parameters:
rectangle- The new bounding box.
-
getResources
public PDResources getResources()
This will get the resources for this appearance stream.- Returns:
- The appearance stream resources.
-
setResources
public void setResources(PDResources resources)
This will set the new resources.- Parameters:
resources- The new resources.
-
getMatrix
public Matrix getMatrix()
Gets the optional matrix for this appearance. This may return null.- Returns:
- The matrix of this appearance.
-
setMatrix
public void setMatrix(java.awt.geom.AffineTransform transform)
Sets the optional Matrix entry for this appearance.- Parameters:
transform- the transformation matrix
-
-