|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.print.PagePrinter
public abstract class PagePrinter
Handles printing the page
| Field Summary | |
|---|---|
protected static int |
headerHeight
Description of the Field |
protected static java.awt.print.PageFormat |
pf
Description of the Field |
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Constructor Summary | |
|---|---|
PagePrinter()
|
|
| Method Summary | |
|---|---|
static java.awt.print.PageFormat |
getPageFormat(boolean dialog)
Returns the page |
static int |
getPageHeight()
Return the width of the page |
static int |
getPageWidth()
Return the width of the page |
protected static double |
getScale()
Returns the scaling |
protected void |
printHeader(java.awt.Graphics g,
java.lang.String title,
java.lang.String pageNumber,
java.lang.String pageCount)
Prints the header at the top of the page |
void |
setDatePageCountFontSize(int value)
Description of the Method |
void |
setFilenameFontSize(int value)
Description of the Method |
static void |
setHeaderHeight(int value)
Sets the size of the header box |
protected static void |
setScale(double value)
Sets the scaling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.print.Printable |
|---|
print |
| Field Detail |
|---|
protected static int headerHeight
protected static java.awt.print.PageFormat pf
| Constructor Detail |
|---|
public PagePrinter()
| Method Detail |
|---|
public void setFilenameFontSize(int value)
value - Description of Parameterpublic void setDatePageCountFontSize(int value)
value - Description of Parameter
protected void printHeader(java.awt.Graphics g,
java.lang.String title,
java.lang.String pageNumber,
java.lang.String pageCount)
g - The graphics objecttitle - the titlepageNumber - the number of pagespageCount - the page countpublic static void setHeaderHeight(int value)
value - The size of the header boxpublic static java.awt.print.PageFormat getPageFormat(boolean dialog)
dialog - present a dialog screen if none
public static int getPageWidth()
public static int getPageHeight()
protected static void setScale(double value)
value - the scaled valueprotected static double getScale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||