org.pz.platypus.plugin.rtf
Class RtfData

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

public class RtfData
extends DocData
implements IOutputContext

Container class for all the state of the RTF document

Author:
alb

Nested Class Summary
 
Nested classes/interfaces inherited from class org.pz.platypus.plugin.common.DocData
DocData.Value
 
Field Summary
private  DocData.Value eolTreatment
           
private  DocData.Value firstLineIndent
           
private  RtfFont font
           
private  GDD gdd
           
private  boolean inCode
           
private  DocData.Value pixelsPerInch
           
private  RtfOutfile rtfOutfile
           
private  DocData.Value strikethru
           
private  TypefaceMap typefaceMap
           
 
Fields inherited from class org.pz.platypus.plugin.common.DocData
columnCount, underline
 
Constructor Summary
RtfData(GDD gddIn)
          Initializes the state of the PDF document.
 
Method Summary
 int getEolTreatment()
           
 Source getEolTreatmentLine()
           
 RtfFont getFont()
           
 java.lang.String getFontFace()
           
 float getFontSize()
           
 RtfOutfile getOutfile()
           
 float getPixelsPerInch()
           
 Source getPixelsPerInchLine()
           
 TypefaceMap getTypefaceMap()
           
 void init()
          Some data items need additional initialization.
 boolean isInCode()
           
 void loadTypefaceMap()
              * Load the typefaces from the fontlist into the typefaceMap.
 void setEolTreatment(int newEolTreatment, Source fileAndLine)
           
 void setFont(RtfFont newFont)
           
 void setFontFace(java.lang.String newFace, Source newSource)
           
 void setFontSize(float newSize, Source newSource)
           
 void setInCode(boolean newState)
           
 void setOutfile(RtfOutfile 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, 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

gdd

private GDD gdd

rtfOutfile

private RtfOutfile rtfOutfile

inCode

private boolean inCode

eolTreatment

private DocData.Value eolTreatment

firstLineIndent

private DocData.Value firstLineIndent

font

private RtfFont font

pixelsPerInch

private DocData.Value pixelsPerInch

strikethru

private DocData.Value strikethru

typefaceMap

private TypefaceMap typefaceMap
Constructor Detail

RtfData

public RtfData(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.     


getEolTreatment

public int getEolTreatment()

getEolTreatmentLine

public Source getEolTreatmentLine()

setEolTreatment

public void setEolTreatment(int newEolTreatment,
                            Source fileAndLine)

getFont

public RtfFont getFont()

setFont

public void setFont(RtfFont 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)

isInCode

public boolean isInCode()

setInCode

public void setInCode(boolean newState)

getOutfile

public RtfOutfile getOutfile()

setOutfile

public void setOutfile(RtfOutfile newOutfile)

getPixelsPerInch

public float getPixelsPerInch()
Overrides:
getPixelsPerInch in class DocData

getPixelsPerInchLine

public Source getPixelsPerInchLine()
Overrides:
getPixelsPerInchLine in class DocData

getTypefaceMap

public TypefaceMap getTypefaceMap()

setTypefaceMap

public void setTypefaceMap(TypefaceMap tfMap)


Copyright © 2008-10 Pacific Data Works LLC