|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.PrintJob
|
+--voji.utils.CopyPrintJob
This class redirects all functions to another PrintJob.
| Constructor Summary | |
CopyPrintJob()
Creates a new empty instance of CopyPrintJob |
|
CopyPrintJob(java.awt.PrintJob printJob)
Creates a new empty instance of CopyPrintJob
handling the given PrintJob. |
|
| Method Summary | |
void |
end()
Ends the print job and does any necessary cleanup |
java.awt.Graphics |
getGraphics()
Gets a Graphics object that will draw to the next page. |
java.awt.Dimension |
getPageDimension()
Returns the dimensions of the page in pixels |
PageGraphics |
getPageGraphics()
Gets a Graphics object that will draw to the next page. |
int |
getPageResolution()
Returns the resolution of the page in pixels per inch |
boolean |
lastPageFirst()
Returns true if the last page will be printed first |
void |
setPrintJob(java.awt.PrintJob printJob)
Sets the current print job |
void |
setTranslation(double x,
double y)
Sets the initial translation for each page in inches |
void |
setTranslation(java.util.Properties info)
Sets the initial translation for each page in inches |
| Methods inherited from class java.awt.PrintJob |
finalize |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CopyPrintJob()
CopyPrintJob
public CopyPrintJob(java.awt.PrintJob printJob)
CopyPrintJob
handling the given PrintJob.
printJob - the PrintJob where to redirect
all actions to| Method Detail |
public void setPrintJob(java.awt.PrintJob printJob)
printJob - the new PrintJob where to redirect
all actions to
public void setTranslation(double x,
double y)
x - the x coordinate (in inches) where to
translate all pages toy - the y coordinate (in inches) where to
translate all pages topublic void setTranslation(java.util.Properties info)
info - the Properties where to take the parameters
from. The keys are
voji.print.x and
voji.print.y.public java.awt.Graphics getGraphics()
translated.
getGraphics in class java.awt.PrintJobGraphics object which draws to the next page.public PageGraphics getPageGraphics()
translated.
PageGraphics object which draws to the next page.public java.awt.Dimension getPageDimension()
getPageDimension in class java.awt.PrintJobpublic int getPageResolution()
getPageResolution in class java.awt.PrintJobpublic boolean lastPageFirst()
lastPageFirst in class java.awt.PrintJobpublic void end()
end in class java.awt.PrintJob
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||