jfig.utils
Class PrintingBroken
java.lang.Object
jfig.utils.PrintingBroken
- All Implemented Interfaces:
- java.awt.print.Printable
- public class PrintingBroken
- extends java.lang.Object
- implements java.awt.print.Printable
A class to test printing of jfig objects via JDK 1.3 and Java2D methods.
Run the test to get two output pages, one in portrait and the other in
landscape orientation.
The name of this class is from the time of JDK 1.2 beta, when nothing
worked... unfortunately, the name of the class still holds some truth
Field Summary |
(package private) java.awt.Frame |
f
|
(package private) java.awt.Image |
icon
|
(package private) java.awt.Button |
lButton
|
(package private) java.awt.Button |
pButton
|
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Method Summary |
void |
Almanac()
|
void |
doPrint(boolean isLandscape)
|
static void |
main(java.lang.String[] argv)
|
int |
print(java.awt.Graphics _g,
java.awt.print.PageFormat pf,
int pagenum)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
f
java.awt.Frame f
lButton
java.awt.Button lButton
pButton
java.awt.Button pButton
icon
java.awt.Image icon
PrintingBroken
public PrintingBroken()
doPrint
public void doPrint(boolean isLandscape)
print
public int print(java.awt.Graphics _g,
java.awt.print.PageFormat pf,
int pagenum)
throws java.awt.print.PrinterException
- Specified by:
print
in interface java.awt.print.Printable
- Throws:
java.awt.print.PrinterException
main
public static void main(java.lang.String[] argv)
Almanac
public void Almanac()