org.pz.platypus.plugin.pdf
Class FormatStack
java.lang.Object
org.pz.platypus.plugin.pdf.FormatStack
public class FormatStack
- extends java.lang.Object
Stack where formats are saved to and restored from
- Author:
- alb
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formats
private java.util.Stack<Format> formats
FormatStack
public FormatStack(PdfData pdd)
saveFormat
public void saveFormat(Format newFormat)
saveCurrentFormat
public void saveCurrentFormat(PdfData pdd)
- Returns a format data structure containing the current format
- Parameters:
pdd
- the PDF data structure
restoreLastFormat
public Format restoreLastFormat()
createDefaulFormat
private Format createDefaulFormat(PdfData pdfData)
getSize
public int getSize()
- Used primarily (exclusively?) for testing
- Returns:
- number of formats in the stack (min = 1)
Copyright © 2008-10 Pacific Data Works LLC