org.pdfbox.pdmodel.interactive.annotation

Class PDAppearanceStream

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

PDAppearanceStream(COSStream s)
Constructor.

Method Summary

PDRectangle
getBoundingBox()
Get the bounding box for this appearance.
COSBase
getCOSObject()
PDResources
getResources()
This will get the resources for this appearance stream.
COSStream
getStream()
This will return the underlying stream.
void
setBoundingBox(PDRectangle rectangle)
This will set the bounding box for this appearance stream.
void
setResources(PDResources resources)
This will set the new resources.

Constructor Details

PDAppearanceStream

public PDAppearanceStream(COSStream s)
Constructor.
Parameters:
s - The cos stream for this appearance.

Method Details

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.

getCOSObject

public COSBase getCOSObject()
Specified by:
getCOSObject in interface COSObjectable

getResources

public PDResources getResources()
This will get the resources for this appearance stream.
Returns:
The appearance stream resources.

getStream

public COSStream getStream()
This will return the underlying stream.
Returns:
The wrapped stream.

setBoundingBox

public void setBoundingBox(PDRectangle rectangle)
This will set the bounding box for this appearance stream.
Parameters:
rectangle - The new bounding box.

setResources

public void setResources(PDResources resources)
This will set the new resources.
Parameters:
resources - The new resources.