org.apache.fop.svg

Class PDFContext


public class PDFContext
extends java.lang.Object

Context class which holds state information which should remain in sync over multiple instances of PDFDocumentGraphics2D.

Method Summary

void
clearCurrentPage()
After this call, there's no current page.
PDFPage
getCurrentPage()
void
increasePageCount()
Notifies the context to increase the page count.
boolean
isPagePending()
void
setCurrentPage(PDFPage page)
Sets the current page

Method Details

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

increasePageCount

public void increasePageCount()
Notifies the context to increase the page count.

isPagePending

public boolean isPagePending()
Returns:
true if a page is set up for painting.

setCurrentPage

public void setCurrentPage(PDFPage page)
Sets the current page
Parameters:
page - the page

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.