|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.print.PagePrinter
org.acm.seguin.print.text.TextPagePrinter
public class TextPagePrinter
Handles printing the page
Field Summary |
---|
Fields inherited from class org.acm.seguin.print.PagePrinter |
---|
headerHeight, pf |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
TextPagePrinter(java.lang.String initFilename,
java.lang.String init,
LinePrinter printer)
Constructor for the UMLPagePrinter object |
Method Summary | |
---|---|
int |
calculatePageCount(java.awt.print.PageFormat pf)
Guess the number of pages |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageNumber)
Print the page |
void |
setBetweenLineSpacing(int value)
Sets the BetweenLineSpacing attribute of the TextPagePrinter object |
void |
setTextFontSize(int value)
Sets the TextFontSize attribute of the TextPagePrinter object |
Methods inherited from class org.acm.seguin.print.PagePrinter |
---|
getPageFormat, getPageHeight, getPageWidth, getScale, printHeader, setDatePageCountFontSize, setFilenameFontSize, setHeaderHeight, setScale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextPagePrinter(java.lang.String initFilename, java.lang.String init, LinePrinter printer)
initFilename
- Description of Parameterinit
- Description of Parameterprinter
- Description of ParameterMethod Detail |
---|
public void setTextFontSize(int value)
value
- The new TextFontSize valuepublic void setBetweenLineSpacing(int value)
value
- The new BetweenLineSpacing valuepublic int calculatePageCount(java.awt.print.PageFormat pf)
pf
- Description of Parameter
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageNumber)
g
- the graphics objectpf
- the page formatpageNumber
- the page number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |