org.pz.platypus.plugin.rtf
Class RtfData
java.lang.Object
org.pz.platypus.plugin.common.DocData
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
Constructor Summary |
RtfData(GDD gddIn)
Initializes the state of the PDF document. |
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 |
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
RtfData
public RtfData(GDD gddIn)
- Initializes the state of the PDF document.
- Parameters:
gddIn
- the GDD
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