Package org.apache.fop.svg
Class PDFContext
- java.lang.Object
-
- org.apache.fop.svg.PDFContext
-
public class PDFContext extends java.lang.ObjectContext class which holds state information which should remain in sync over multiple instances of PDFDocumentGraphics2D.
-
-
Constructor Summary
Constructors Constructor Description PDFContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCurrentPage()After this call, there's no current page.PDFPagegetCurrentPage()voidincreasePageCount()Notifies the context to increase the page count.booleanisPagePending()voidsetCurrentPage(PDFPage page)Sets the current page
-
-
-
Method Detail
-
isPagePending
public boolean isPagePending()
- Returns:
- true if a page is set up for painting.
-
clearCurrentPage
public void clearCurrentPage()
After this call, there's no current page.
-
getCurrentPage
public PDFPage getCurrentPage()
- Returns:
- the current page or null if there is none
-
setCurrentPage
public void setCurrentPage(PDFPage page)
Sets the current page- Parameters:
page- the page
-
increasePageCount
public void increasePageCount()
Notifies the context to increase the page count.
-
-