org.pz.platypus.plugin.pdf
Class FormatStack

java.lang.Object
  extended by org.pz.platypus.plugin.pdf.FormatStack

public class FormatStack
extends java.lang.Object

Stack where formats are saved to and restored from

Author:
alb

Field Summary
private  java.util.Stack<Format> formats
           
 
Constructor Summary
FormatStack(PdfData pdd)
           
 
Method Summary
private  Format createDefaulFormat(PdfData pdfData)
           
 int getSize()
          Used primarily (exclusively?) for testing
 Format restoreLastFormat()
           
 void saveCurrentFormat(PdfData pdd)
          Returns a format data structure containing the current format
 void saveFormat(Format newFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formats

private java.util.Stack<Format> formats
Constructor Detail

FormatStack

public FormatStack(PdfData pdd)
Method Detail

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