|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pdfview.Cache
public class Cache
A cache of PDF pages and images.
Constructor Summary | |
---|---|
Cache()
Creates a new instance of a Cache |
Method Summary | |
---|---|
void |
addImage(PDFPage page,
ImageInfo info,
java.awt.image.BufferedImage image)
Add an image to the cache. |
void |
addImage(PDFPage page,
ImageInfo info,
java.awt.image.BufferedImage image,
PDFRenderer renderer)
Add an image to the cache. |
void |
addPage(java.lang.Integer pageNumber,
PDFPage page)
Add a page to the cache. |
void |
addPage(java.lang.Integer pageNumber,
PDFPage page,
PDFParser parser)
Add a page to the cache. |
java.awt.image.BufferedImage |
getImage(PDFPage page,
ImageInfo info)
Get an image from the cache |
PDFRenderer |
getImageRenderer(PDFPage page,
ImageInfo info)
Get an image's renderer from the cache |
PDFPage |
getPage(java.lang.Integer pageNumber)
Get a page from the cache |
PDFParser |
getPageParser(java.lang.Integer pageNumber)
Get a page's parser from the cache |
void |
removeImage(PDFPage page,
ImageInfo info)
Remove an image and its associated renderer from the cache |
void |
removePage(java.lang.Integer pageNumber)
Remove a page and all its associated images, as well as its parser and renderers, from the cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cache()
Method Detail |
---|
public void addPage(java.lang.Integer pageNumber, PDFPage page)
pageNumber
- the page number of this pagepage
- the page to addpublic void addPage(java.lang.Integer pageNumber, PDFPage page, PDFParser parser)
pageNumber
- the page number of this pagepage
- the page to addparser
- the parser which is parsing this pagepublic void addImage(PDFPage page, ImageInfo info, java.awt.image.BufferedImage image)
page
- page this image is associated withinfo
- the image info associated with this imageimage
- the image to addpublic void addImage(PDFPage page, ImageInfo info, java.awt.image.BufferedImage image, PDFRenderer renderer)
page
- the page this image is associated withinfo
- the image info associated with this imageimage
- the image to addrenderer
- the renderer which is rendering this pagepublic PDFPage getPage(java.lang.Integer pageNumber)
pageNumber
- the number of the page to get
public PDFParser getPageParser(java.lang.Integer pageNumber)
pageNumber
- the number of the page to get the parser for
public java.awt.image.BufferedImage getImage(PDFPage page, ImageInfo info)
page
- the page the image is associated withinfo
- the image info that describes the image
public PDFRenderer getImageRenderer(PDFPage page, ImageInfo info)
page
- the page this image was generated frominfo
- the image info describing the image
public void removePage(java.lang.Integer pageNumber)
pageNumber
- the number of the page to removepublic void removeImage(PDFPage page, ImageInfo info)
page
- the page the image is generated frominfo
- the image info of the image to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |