|
fot2pdf (w) C. Drescher | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.pdftech.fot2pdf.formatter.Formatter
The core formatting class. This one walks through the given FlowObjectTree recursively, creates the DisplayBoxes, paginates and writes the pages out into the PDF file.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
Formatter(com.pdftech.fot2pdf.xml.FlowObjectTree fot,
java.lang.String outFilename)
|
|
Formatter(java.lang.ThreadGroup g,
com.pdftech.fot2pdf.xml.FlowObjectTree fot,
java.lang.String outFilename)
|
|
| Method Summary | |
double |
compactDisplayBoxes(com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList DisplayStream,
com.pdftech.fot2pdf.tools.LinkedList contentlist)
This method creates a list of contentboxes from DisplayBoxes. |
static com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
filterAnchorBoxes(com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList inlist)
Takes all anchor boxes from a given display box list; needed for nested objects etc. |
static java.lang.String |
makeAlignedLineDrawString(com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
double linelen,
char orientation,
char aligning)
Creates PDF markup to draw a line based on standard-DSSSL-parameters at position 0/0. |
static java.lang.String |
makeAlignedLineDrawStringXY(com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
double x,
double y,
double linelen,
char orientation,
char aligning)
Creates PDF markup to draw a line based on standard-DSSSL-parameters. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeBox(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
Produces a boxed object. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeConditionalSpaceAfter(com.pdftech.fot2pdf.formatter.DSSSL_DisplayNics d)
Adds space (=glue) if specified in DSSSL, parsing a DisplayNics object. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeConditionalSpaceAfter(com.pdftech.fot2pdf.xml.xmlnode o)
Adds space (=glue) if specified in DSSSL, parsing an xmlnode into a DisplayNics object. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeConditionalSpaceBefore(com.pdftech.fot2pdf.formatter.DSSSL_DisplayNics d)
Adds space (=glue) if specified in DSSSL, parsing a DisplayNics object. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeConditionalSpaceBefore(com.pdftech.fot2pdf.xml.xmlnode o)
Adds space (=glue) if specified in DSSSL, parsing an xmlnode into a DisplayNics object. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeDisplayedGraphic(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
This routine takes an external graphic and creates a display stream from it. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeDisplayedParagraph(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
This routine adds a paragraph to a display stream, heeding spaces+keeps. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeDisplayedRule(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
This routine creates a displayed rule. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeDisplayGroup(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
Manages a DisplayGroup, first processing all children, then applying any keeps. |
static java.lang.String |
makeLineDrawString(com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
double linelen,
char orientation)
Creates PDF markup to draw a line based on standard-DSSSL-parameters, centered. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBox |
makePageBreak()
Adds a page-break display box |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeSimpleParagraph(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
com.pdftech.fot2pdf.formatter.TextState ts)
This method constructs an elementary paragraph. |
com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList |
makeTable(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
Adds a Table to the DisplayStream, which in turn calls the LayoutTable routines. |
void |
paginate(com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList DisplayStream,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
com.pdftech.fot2pdf.formatter.PageHeadersAndFooters phf)
The core pagination routine. |
void |
resolveAnchorList()
A routine for resolving all anchors to provide quick lookup. |
void |
run()
This is the core routine of the Formatter. |
void |
writepages()
The core routine for writing pdf-pages. |
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Formatter(java.lang.ThreadGroup g,
com.pdftech.fot2pdf.xml.FlowObjectTree fot,
java.lang.String outFilename)
public Formatter(com.pdftech.fot2pdf.xml.FlowObjectTree fot,
java.lang.String outFilename)
| Method Detail |
public double compactDisplayBoxes(com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList DisplayStream,
com.pdftech.fot2pdf.tools.LinkedList contentlist)
DisplayStream - The list of DisplayBoxes to be formattedcontentlist - The list where the contentboxes are appended to
public void paginate(com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList DisplayStream,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
com.pdftech.fot2pdf.formatter.PageHeadersAndFooters phf)
public void writepages()
public void resolveAnchorList()
public static java.lang.String makeAlignedLineDrawStringXY(com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
double x,
double y,
double linelen,
char orientation,
char aligning)
public static java.lang.String makeAlignedLineDrawString(com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
double linelen,
char orientation,
char aligning)
makeAlignedLineDrawStringXY(com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics, double, double, double, char, char)
public static java.lang.String makeLineDrawString(com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
double linelen,
char orientation)
makeAlignedLineDrawString(com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics, double, char, char)public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBox makePageBreak()
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeConditionalSpaceBefore(com.pdftech.fot2pdf.formatter.DSSSL_DisplayNics d)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeConditionalSpaceBefore(com.pdftech.fot2pdf.xml.xmlnode o)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeConditionalSpaceAfter(com.pdftech.fot2pdf.formatter.DSSSL_DisplayNics d)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeConditionalSpaceAfter(com.pdftech.fot2pdf.xml.xmlnode o)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeSimpleParagraph(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic,
com.pdftech.fot2pdf.formatter.TextState ts)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeDisplayedRule(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeDisplayedGraphic(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeDisplayedParagraph(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
com.pdftech.fot2pdf.formatter.LayoutParagraph
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeTable(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
com.pdftech.fot2pdf.formatter.Formatter.LayoutTablepublic static com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList filterAnchorBoxes(com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList inlist)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeBox(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
public com.pdftech.fot2pdf.formatter.displayboxes.DisplayBoxList makeDisplayGroup(com.pdftech.fot2pdf.xml.xmlnode o,
com.pdftech.fot2pdf.formatter.DSSSL_InheritedCharacteristics ic)
public void run()
|
fot2pdf (w) C. Drescher | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||