|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.genedavissoftware.printing.GDSPrinting
com.genedavissoftware.printing.FormattedPrint
Build a formatted document and print it. types of input possible are
plain text, bold text, italicized text, section titles, document titles
tables of text and images.
The image and table options still need some work, the rest of this class should
be functional.
There is the issue of what to do with multiple spaces. The internal HTML makes
extra spaces go away. What should be done? have an addSpace() method? I haven't
decided and will gladly take input.
| Field Summary | |
(package private) java.lang.String |
doc
|
| Fields inherited from class com.genedavissoftware.printing.GDSPrinting |
BOTTOM, CENTER, LEFT, RIGHT, TOP |
| Constructor Summary | |
FormattedPrint()
|
|
| Method Summary | |
void |
addBoldText(java.lang.String text)
Add bold text to the document. |
void |
addDocumentTitle(java.lang.String text)
Add a Title sized String to the document. |
void |
addImage(java.net.URL image)
The URL to the image that is to be added to the document. |
void |
addItalicsText(java.lang.String text)
Adds italicized text. |
void |
addLineBreak()
Add a line break to the document. |
void |
addPlainText(java.lang.String text)
Add plain text to the document. |
void |
addSectionTitle(java.lang.String text)
Add a section title to the document. |
void |
addTable(int cols,
int rows,
java.lang.String[] data)
Add in a table. |
void |
clear()
Empty the internal document in preparation for filling with new text. |
static void |
main(java.lang.String[] args)
Testing/example for using FormattedPrint |
void |
print()
Print the currently maintained internal document. |
| Methods inherited from class com.genedavissoftware.printing.GDSPrinting |
setFooter, setFooterAlignment, setHeader, setHeaderAlignment, setInitialPageNumber, setPageNumberHorizontalAlignment, setPageNumberVerticalAlignment, showFooter, showHeader, showPageNumber |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String doc
| Constructor Detail |
public FormattedPrint()
| Method Detail |
public static void main(java.lang.String[] args)
public void print()
throws GDSPrintException
GDSPrintExceptionpublic void clear()
public void addLineBreak()
public void addPlainText(java.lang.String text)
public void addItalicsText(java.lang.String text)
public void addBoldText(java.lang.String text)
public void addSectionTitle(java.lang.String text)
public void addDocumentTitle(java.lang.String text)
public void addTable(int cols,
int rows,
java.lang.String[] data)
public void addImage(java.net.URL image)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||