Ä ÍßÍ
Ţéé ÁÍ ŕéé Ú Ô ŢÎ Í ÍË ŹË ÉÍÔ Á ÍË ŕ Ä ÍßÍ ˙Ďß
Ëé é
ÁÍéŔ ŕÎÁËÁ Ë ŹÍß
ß ˙ßÍ ŕ Ú ŢËÁË Ţ ÍßŐ .ËË˙
Ýéé Íé Íß
ŢËÍ Úß ŰÍÎ Ĺ Ő .ËË Í
Íß
ß ŕ
°/ˇˇ é ÍéÁÍé ČééÁ ąą ÍË ¸/ľ ËÁÖÁ ÍË ŕ Ú Ĺ Ü ˙ÁÍ .ĹÁ
°/ˇˇ Ëéé Ýé ˙Á ŕéé Ţ Ń ŕÍ Ö
ÍÁ ŕ Ĺ .Ë˙
.Ë
Ţ ÎÁ ÝÁß
˙ ŹË˙ ÍËÍ ÁÍ Graphics2D ˙ Ú Ä Ă ŕŔ ÎÁ
ŕËéé Íß
ËÁß
˙ .Ý ŕË
Á Ý Íß
ß ŕ ˙ßÍ ÝÍ
Ĺ ˙
Íééé
Preview ŕÍéé ÍË Íß
ß ŕ ŢËß Ă
Ĺ ÁÍ Ëß ŕË
Í Graphics2D Í ÁÍ AffineTransform ŹÍ ŢÁ ÝÁ ˙ÁÍ .ËË ŕÎÁËÁ
.ËÍ
Źŕéé ŢÍŔ
ÜßÁ ŕ ÎÁ ËÁß
˙ ÍÍ Preview ŕÍ ÎÁ ŕË
Á
ŕßé .Ë Úß ŰÍÎ ÁÍ Íß
ËÁß
˙ ß Ë ÍßÍ ˙ áË Ĺ
.Ë˙ Ä ˙ÁÍ áË ˙ÁÍÁË ŕÍ ŢÁ ŹŢŔ Í
PFPrintPreviewToobar ŢŔ ŢéßÁ ŕ ËËÍ˙ Ü
˙ ßË ÎÁ Preview ŕÍ
ŕé ÁÍ ÍéÍé ŢééÁÍé ß ĹéÍé ß ËééÁ ÁÍ toolbar ˙éé ŢÁ .ĹÁ
Íßé
ééßé ˙ßÍ ÁÍ ŕ
Ë
Í˙ ŹË˙ ˙ ŢßË ŕ PFPrintPreview
Ëééé ˙é Íé Ýé é ŕéßé ˙ ßË ŢÁ Ý ŕÁ ˙ÁÍ .Ë ÍËÍ
.Ë ÁÍ UML Diagram 3
UML Diagram 3
Print Job ŕÍ
ŕ ËÍÍ ß Ĺ Ő ÎÁ ÝÍ Ĺ ŕ ŕÁ ÎÁ ŢÔÁ Üß ÍßŐ
ÁÍ ËÍÁËéé
Á ŕÍ Ú ŕ Ý˙ Ë ŹË ŕ
ÁË ˙Í
Ë ŕ Ţ
Ŕ ÎÁ Ë ŕË
Á Ě Ĺ ß ŕ Ë ˙Í
ÁÍ ÝŐ
˙ÁÍ
ÍË Ëßéßé ˙éÍé
éÁÍ Ä ˙ÁÍ Ĺ Ă
Á ß ˙ ËÁË
ŢËßÎÁ ŕ
Ú UML Diagram 1 .ÝËß ŘĚ ÁÍ Ĺ ŢÁ ŹË˙ ÍÁÍ ßË ÁÍ Ä ŕÍ
.ËË ˙ ŕěÁÍÁ PFPageSetup Đ ÎÁ Ń ĹÍ ß Ăß ˙ÍÍ
áÍ ŕ
ß Ăéé ŘÁËéÁ ŕé ŕ Ü .ËÍ˙ Ţ ŕ Ä Ă ÉÍÔ ËÍß ÍË Ć
ŕéÍ ´ Ń ÍË .ËÍ ÝÁß ÖßÍ ÁÍ ˙ß ŕÍ ŹËËÍ ˙ ÁÍ ĂßÍ
ß PFPage ŹPFDocument Üéé ŕé Ëßé ÝÁß ÖßÍ ÁÍ ˙Á ˙˙ ˙ß
.Ë Ůß Ä ÍÁ ÍË .Ë˙ PFPrintObject
Resources
"Printing in Java," Jean-Pierre Dubé (JavaWorld)
Part 1: Acquaint yourself with the Java printing model
Part 2: Print your first page and render complex documents
Part 3: Jean-Pierre Dubé introduces the print framework that works on top of the Java Print API
Follow a lively thread on printing in Java from a Windows machine in JavaWorld's Windows Application Development discussion:
http://www.itworld.com/jump/jw-0105-print/forums.itworld.com/webx?14@@.
ee6baf4/77!skip=20
Graphic Java 2, Mastering The AWT, Volume 1, David M. Geary (Prentice Hall, 1998) -- you will find tons of books covering Java AWT, but none will cover the subject to the extent that this one does. If you're writing GUIs, you must have this book next to your computer:
http://www.amazon.com/exec/obidos/ASIN/0130796662/o/qid=970872039/
sr=2-2/102-2403269-9106541
Migrating from Java 1.0 to Java 1.1, Daniel I. Oshi and Pavel A. Vorobiev (Ventana Communications Group, 1997) -- this book was helpful when Java 1.1 came out, and was the first to talk about printing in Java:
http://www.amazon.com/exec/obidos/ASIN/1566046866/o/qid=969489411/
sr=8-1/ref=aps_sr_b_1_3/002-2488903-6332023
Java AWT Reference (Java Series), John Zukowski and Mike Loukides (O'Reilly & Associates, 1997) -- an excellent reference to the AWT API:
http://www.amazon.com/exec/obidos/ASIN/1565922409/qid=969489555/sr=
1-1/002-2488903-6332023
Java 2D API Graphics, Vincent J. Hardy (Prentice Hall, 1999) -- probably the best book on Java 2D, this book covers all aspects of the 2D API and also provides a Graphics framework for advanced 2D compositions:
http://www.amazon.com/exec/obidos/ASIN/0130142662/qid=969489696/sr=
-1-1/002-2488903-6332023
An excellent introduction to the Java 2D API: "Getting Started with Java 2D," Bill Day (JavaWorld, July 1998):
http://www.javaworld.com/javaworld/jw-07-1998/jw-07-media.html
A reference document on the 2D API: Programmer's guide to the Java 2D API, Sun Microsystems:
ftp://ftp.java.sun.com/docs/j2se1.3/j2d-book.pdf
For more articles on printing in Java, browse JavaWorld's Topical Index:
http://www.javaworld.com/javaworld/topicalindex/jw-ti-index.html
|