|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pz.platypus.plugin.common.DocData
org.pz.platypus.plugin.html.HtmlData
public class HtmlData
Container class for all the state of the HTML document
| Nested Class Summary | |
|---|---|
(package private) static class |
HtmlData.Value
Inner class containing the value of the data item, plus the line at which it was las changed. |
| Fields inherited from class org.pz.platypus.plugin.common.DocData |
|---|
underline |
| Constructor Summary | |
|---|---|
HtmlData(GDD gddIn,
HtmlCommandTable commandTable)
Initializes the state of the PDF document. |
|
| Method Summary | |
|---|---|
boolean |
areWeInAParagraphAlready()
|
void |
configureBody(org.apache.ecs.html.Body body)
|
private void |
generateNestedTags(java.util.LinkedList<java.lang.String> nested,
java.lang.String tok)
|
int |
getEolTreatment()
|
float |
getFirstLineIndent()
|
HtmlFont |
getFont()
|
java.lang.String |
getFontFace()
|
float |
getFontSize()
|
HtmlFooter |
getFooter()
|
GDD |
getGdd()
|
float |
getLeading()
|
Source |
getLeadingLine()
|
float |
getLineHeight()
|
Source |
getLineHeightLine()
|
float |
getMarginBottom()
|
Source |
getMarginBottomLine()
|
float |
getMarginLeft()
|
Source |
getMarginLeftLine()
|
float |
getMarginRight()
|
Source |
getMarginRightLine()
|
float |
getMarginTop()
|
Source |
getMarginTopLine()
|
java.util.List<OutputCommandable> |
getNestedTagCmds()
|
Source |
getNoIndentLine()
|
HtmlOutfile |
getOutfile()
|
float |
getPageHeight()
|
Source |
getPageHeightLine()
|
int |
getPageNumber()
|
float |
getPageWidth()
|
float |
getPixelsPerInch()
|
TypefaceMap |
getTypefaceMap()
|
float |
getUserSpecifiedColumnWidth()
|
void |
init()
Some data items need additional initialization. |
boolean |
isInCode()
|
private boolean |
isIsAnOnCommand(java.lang.String tok)
|
private boolean |
itIsAnOffCommand(java.lang.String tok)
|
private void |
justPushIt(java.lang.String tok)
|
private boolean |
matches(java.lang.String curr,
java.lang.String tok)
|
java.lang.String |
nestedTags()
|
void |
outputTags()
|
private void |
popTillItMatches(java.lang.String tok)
|
void |
push(java.lang.String tok)
|
void |
setColumnCount(int newCount,
Source fileAndLine)
|
void |
setColumns(HtmlColumns newColumnsList)
|
void |
setCurrColumn(int newColNumber)
|
void |
setFirstLineIndent(float newFirstLineIndent,
Source fileAndLine)
|
void |
setFontFace(java.lang.String newFontFace,
Source source)
|
void |
setFontSize(float newFontSize,
Source newSource)
|
void |
setFooter(HtmlFooter newFooter)
|
void |
setInCode(boolean newState)
|
void |
setLeading(float newLeading,
Source fileAndLine)
|
void |
setLineHeight(float newLineHeight,
Source fileAndLine)
|
void |
setMarginBottom(float val,
Source fileAndLine)
|
void |
setMarginLeft(float val,
Source fileAndLine)
|
void |
setMarginRight(float val,
Source fileAndLine)
|
void |
setMarginTop(float val,
Source fileAndLine)
|
void |
setNoIndent(boolean trueFalse,
Source fileAndLine)
|
void |
setOutfile(HtmlOutfile newOutfile)
|
void |
setPageHeight(float val,
Source fileAndLine)
|
void |
setPageWidth(float val,
Source fileAndLine)
|
void |
setUserSpecifiedColumnWidth(float newWidth,
Source fileAndLine)
|
(package private) void |
setValue(HtmlData.Value field,
boolean val,
Source fileAndLine,
java.lang.String name)
Sets the new boolean value, updates line number, and table in systemStrings |
(package private) void |
setValue(HtmlData.Value field,
float val,
Source fileAndLine,
java.lang.String name)
Sets the new float value, updates line number, and table in systemStrings |
(package private) void |
setValue(HtmlData.Value field,
int val,
Source fileAndLine,
java.lang.String name)
Sets the new int value, updates line number, and table in systemStrings |
private java.lang.String |
substitutePlusWithMinus(java.lang.String tag)
|
| 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.OutputContextable |
|---|
inCodeSection, setLineNumberLast, setLineNumberSkip |
| Field Detail |
|---|
java.util.LinkedList<java.lang.String> listAsStack
java.util.LinkedList<java.lang.String> nestTagsList
private GDD gdd
private HtmlOutfile htmlOutfile
private boolean inCode
private HtmlData.Value alignment
private HtmlData.Value columnCount
private HtmlData.Value userSpecifiedColumnWidth
private HtmlColumns columns
private int currColumn
private boolean eolPending
private HtmlData.Value eolTreatment
private HtmlData.Value firstLineIndent
private HtmlFont font
private HtmlFooter footer
private HtmlData.Value leading
private HtmlData.Value lineHeight
private HtmlData.Value marginBottom
private HtmlData.Value marginLeft
private HtmlData.Value marginRight
private HtmlData.Value marginTop
private HtmlData.Value marginsMirrored
private HtmlData.Value noIndent
private HtmlData.Value pageHeight
private int pageNumber
private HtmlData.Value pageWidth
private HtmlData.Value paragraphIndentRight
private HtmlData.Value paragraphSkip
private HtmlData.Value pixelsPerInch
private HtmlData.Value strikethru
private TypefaceMap typefaceMap
| Constructor Detail |
|---|
public HtmlData(GDD gddIn,
HtmlCommandTable commandTable)
gddIn - the GDDcommandTable - | Method Detail |
|---|
public void configureBody(org.apache.ecs.html.Body body)
public void push(java.lang.String tok)
private void popTillItMatches(java.lang.String tok)
private void generateNestedTags(java.util.LinkedList<java.lang.String> nested,
java.lang.String tok)
private java.lang.String substitutePlusWithMinus(java.lang.String tag)
private boolean matches(java.lang.String curr,
java.lang.String tok)
private void justPushIt(java.lang.String tok)
private boolean isIsAnOnCommand(java.lang.String tok)
private boolean itIsAnOffCommand(java.lang.String tok)
public java.lang.String nestedTags()
public java.util.List<OutputCommandable> getNestedTagCmds()
public void outputTags()
public boolean areWeInAParagraphAlready()
public void setFontSize(float newFontSize,
Source newSource)
public void setFontFace(java.lang.String newFontFace,
Source source)
public void init()
init in class DocData
void setValue(HtmlData.Value field,
float val,
Source fileAndLine,
java.lang.String name)
field - the Value field to be updatedval - the new floating-point valuefileAndLine - the file and line number where the change occurredname - the key to look up the string in systemStrings
void setValue(HtmlData.Value field,
int val,
Source fileAndLine,
java.lang.String name)
field - the Value field to be updatedval - the new integer valuefileAndLine - the file and line number where the change occurredname - the key to look up the string in systemStrings
void setValue(HtmlData.Value field,
boolean val,
Source fileAndLine,
java.lang.String name)
field - the Value field to be updatedval - the new floating-point valuefileAndLine - the file and line number where the change occurredname - the key to look up the string in systemStrings
public void setColumnCount(int newCount,
Source fileAndLine)
setColumnCount in class DocDatapublic void setColumns(HtmlColumns newColumnsList)
public void setCurrColumn(int newColNumber)
setCurrColumn in class DocDatapublic int getEolTreatment()
public float getFirstLineIndent()
getFirstLineIndent in class DocData
public void setFirstLineIndent(float newFirstLineIndent,
Source fileAndLine)
setFirstLineIndent in class DocDatapublic HtmlFont getFont()
public java.lang.String getFontFace()
public float getFontSize()
public HtmlFooter getFooter()
public void setFooter(HtmlFooter newFooter)
public GDD getGdd()
getGdd in interface OutputContextablegetGdd in class DocDatapublic boolean isInCode()
public void setInCode(boolean newState)
public float getLeading()
getLeading in class DocDatapublic Source getLeadingLine()
getLeadingLine in class DocData
public void setLeading(float newLeading,
Source fileAndLine)
setLeading in class DocDatapublic float getLineHeight()
getLineHeight in class DocDatapublic Source getLineHeightLine()
getLineHeightLine in class DocData
public void setLineHeight(float newLineHeight,
Source fileAndLine)
setLineHeight in class DocDatapublic float getMarginBottom()
getMarginBottom in class DocDatapublic Source getMarginBottomLine()
getMarginBottomLine in class DocData
public void setMarginBottom(float val,
Source fileAndLine)
setMarginBottom in class DocDatapublic float getMarginLeft()
getMarginLeft in class DocDatapublic Source getMarginLeftLine()
getMarginLeftLine in class DocData
public void setMarginLeft(float val,
Source fileAndLine)
setMarginLeft in class DocDatapublic float getMarginRight()
getMarginRight in class DocDatapublic Source getMarginRightLine()
getMarginRightLine in class DocData
public void setMarginRight(float val,
Source fileAndLine)
setMarginRight in class DocDatapublic float getMarginTop()
getMarginTop in class DocDatapublic Source getMarginTopLine()
getMarginTopLine in class DocData
public void setMarginTop(float val,
Source fileAndLine)
setMarginTop in class DocDatapublic Source getNoIndentLine()
getNoIndentLine in class DocData
public void setNoIndent(boolean trueFalse,
Source fileAndLine)
setNoIndent in class DocDatapublic HtmlOutfile getOutfile()
public void setOutfile(HtmlOutfile newOutfile)
public float getPageHeight()
getPageHeight in class DocDatapublic Source getPageHeightLine()
getPageHeightLine in class DocData
public void setPageHeight(float val,
Source fileAndLine)
setPageHeight in class DocDatapublic int getPageNumber()
getPageNumber in class DocDatapublic float getPageWidth()
getPageWidth in class DocData
public void setPageWidth(float val,
Source fileAndLine)
setPageWidth in class DocDatapublic float getPixelsPerInch()
getPixelsPerInch in class DocDatapublic TypefaceMap getTypefaceMap()
public float getUserSpecifiedColumnWidth()
getUserSpecifiedColumnWidth in class DocData
public void setUserSpecifiedColumnWidth(float newWidth,
Source fileAndLine)
setUserSpecifiedColumnWidth in class DocData
|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||