org.pz.platypus.plugin.pdf
Class PdfData

java.lang.Object
  extended by org.pz.platypus.plugin.common.DocData
      extended by org.pz.platypus.plugin.pdf.PdfData
All Implemented Interfaces:
IOutputContext

public class PdfData
extends DocData
implements IOutputContext

Container class for all the state of the PDF document

Author:
alb

Nested Class Summary
 
Nested classes/interfaces inherited from class org.pz.platypus.plugin.common.DocData
DocData.Value
 
Field Summary
 Columns columns
           
private  boolean eolPending
           
private  DocData.Value eolTreatment
           
private  PdfFont font
           
private  Footer footer
           
private  FormatStack formatStack
           
private  GDD gdd
           
private  PdfOutfile pdfOutfile
           
private  TypefaceMap typefaceMap
           
 
Fields inherited from class org.pz.platypus.plugin.common.DocData
columnCount, underline
 
Constructor Summary
PdfData(GDD gddIn)
          Initializes the state of the PDF document.
 
Method Summary
 javax.script.ScriptEngine createNewScriptEngine()
           
 Columns getColumns()
           
 boolean getEolPending()
           
 int getEolTreatment()
           
 Source getEolTreatmentLine()
           
 PdfFont getFont()
           
 java.lang.String getFontFace()
           
 float getFontSize()
           
 Footer getFooter()
           
 FormatStack getFormatStack()
           
 PdfOutfile getOutfile()
           
 TypefaceMap getTypefaceMap()
           
 void init()
          Some data items need additional initialization.
 void loadTypefaceMap()
          Load the typefaces from the fontlist into the typefaceMap.
 void setColumns(Columns newColumnsList)
           
 void setEolPending(boolean newEol)
           
 void setEolTreatment(int newEolTreatment, Source fileAndLine)
           
 void setFont(PdfFont newFont)
           
 void setFontFace(java.lang.String newFace, Source newSource)
           
 void setFontSize(float newSize, Source newSource)
           
 void setFooter(Footer newFooter)
           
 void setFormatStack(FormatStack formats)
           
 void setOutfile(PdfOutfile newOutfile)
           
 void setTypefaceMap(TypefaceMap tfMap)
           
 
Methods inherited from class org.pz.platypus.plugin.common.DocData
getAlignment, getAlignmentLine, getCodeSectionLine, getColumnCount, getColumnCountLine, getCommandTable, getCurrColumn, getFirstLineIndent, getFirstLineIndentLine, getGdd, getLeading, getLeadingLine, getLineHeight, getLineHeightLine, getLineNumberLast, getLineNumberLastLine, getLineNumberSkip, getLineNumberSkipLine, getMarginBottom, getMarginBottomLine, getMarginLeft, getMarginLeftLine, getMarginRight, getMarginRightLine, getMarginsMirrored, getMarginsMirroredLine, getMarginTop, getMarginTopLine, getNoIndent, getNoIndentLine, getPageHeight, getPageHeightLine, getPageNumber, getPageWidth, getPageWidthLine, getParagraphIndent, getParagraphIndentLine, getParagraphIndentRight, getParagraphIndentRightLine, getParagraphSkip, getParagraphSkipLine, getPixelsPerInch, getPixelsPerInchLine, getStrikethru, getStrikethruLine, getUnderline, getUserSpecifiedColumnWidth, getUserSpecifiedColumnWidthLine, inCodeSection, isInCodeListing, setAlignment, setColumnCount, setCommandTable, setCurrColumn, setFirstLineIndent, setInCodeListing, setInCodeSection, setLeading, setLineHeight, setLineNumberLast, setLineNumberSkip, setMarginBottom, setMarginLeft, setMarginRight, setMarginsMirrored, setMarginTop, setNoIndent, setPageHeight, setPageNumber, setPageWidth, setParagraphIndent, setParagraphIndentRight, setParagraphSkip, setStrikethru, setUserSpecifiedColumnWidth, setValue, setValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pz.platypus.interfaces.IOutputContext
getGdd, inCodeSection, setLineNumberLast, setLineNumberSkip
 

Field Detail

pdfOutfile

private PdfOutfile pdfOutfile

gdd

private GDD gdd

columns

public Columns columns

eolPending

private boolean eolPending

eolTreatment

private DocData.Value eolTreatment

font

private PdfFont font

footer

private Footer footer

formatStack

private FormatStack formatStack

typefaceMap

private TypefaceMap typefaceMap
Constructor Detail

PdfData

public PdfData(GDD gddIn)
Initializes the state of the PDF document.

Parameters:
gddIn - the GDD
Method Detail

init

public void init()
Some data items need additional initialization. This is not done in the constructor, for testing purposes. This two-step process enables tests to create a PdfData structure and do the complex initialization separately.

Overrides:
init in class DocData

loadTypefaceMap

public void loadTypefaceMap()
Load the typefaces from the fontlist into the typefaceMap.


createNewScriptEngine

public javax.script.ScriptEngine createNewScriptEngine()

getColumns

public Columns getColumns()

setColumns

public void setColumns(Columns newColumnsList)

getEolPending

public boolean getEolPending()

setEolPending

public void setEolPending(boolean newEol)

getEolTreatment

public int getEolTreatment()

getEolTreatmentLine

public Source getEolTreatmentLine()

setEolTreatment

public void setEolTreatment(int newEolTreatment,
                            Source fileAndLine)

getFont

public PdfFont getFont()

setFont

public void setFont(PdfFont newFont)

getFontFace

public java.lang.String getFontFace()

setFontFace

public void setFontFace(java.lang.String newFace,
                        Source newSource)

getFontSize

public float getFontSize()

setFontSize

public void setFontSize(float newSize,
                        Source newSource)

getFooter

public Footer getFooter()

setFooter

public void setFooter(Footer newFooter)

setFormatStack

public void setFormatStack(FormatStack formats)

getFormatStack

public FormatStack getFormatStack()

getOutfile

public PdfOutfile getOutfile()

setOutfile

public void setOutfile(PdfOutfile newOutfile)

getTypefaceMap

public TypefaceMap getTypefaceMap()

setTypefaceMap

public void setTypefaceMap(TypefaceMap tfMap)


Copyright © 2008-10 Pacific Data Works LLC