|
||||||||||
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 toMethod Detail |
public void setPrintJob(java.awt.PrintJob printJob)
printJob
- the new PrintJob
where to redirect
all actions topublic 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.PrintJob
Graphics
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.PrintJob
public int getPageResolution()
getPageResolution
in class java.awt.PrintJob
public boolean lastPageFirst()
lastPageFirst
in class java.awt.PrintJob
public void end()
end
in class java.awt.PrintJob
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |