È Íß͛
ނéŒéœ ÁÍ ŕé‰é• ڟ Ԗ• ނ›Î ͝ ÍË ŹËŒ ÉÍԛ ‚‡œŸÁ ÍË ŕ— Ä‚ˆ Íß͛ ˙˜ĎŸß
Ëé‰ ‚é… ÁÍéœŔ ŕÎÁ˜Á ˟‚ƒ ŹÍ߅Ÿœß› ˙ßÍ ŕ‰• ڟ ŢËÁË Ţ‚Œœ Íß՜›ƒ .˝Ë˙›
Ýéžé› ͂韋ƒ ͟ߍ… ŢË͗ ڈߗ ‚Ÿ ŰÍ΃ ыœ Օ‰ .˟Ë ͟Ÿ“… Í߅Ÿœß› ŕ‰•
°/ˇˇ ‚éƒ ÍéƒÁÍéƒ ČéœéŸÁ ąą ÍË ¸/ľ ËÁփÁ ÍË ŕ‰• ڟ ыœ ܂†› ˙Á̓ .ŋÁ
°/ˇˇ ËéŸ‚éƒ Ýé ˙Á ŕé‰é• ޟœˆ џ‚›œ ŕ͇œ„ ւ•…ÍÁ ŕƒ ‚œž„ ыœ .ˌ‚ƒ˙›
.ˌ‚ƒ

ޟ› ÎÁ ݟœÁ߅˙› ŹËŸ‚›œ˙› ÍËœÍ ÁÍ 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




‚‡—Ÿ ĹÍߍƒ ŕ™‚–› ܗ
Next Page
12345678
Previoys Page



˙‡œ‹Í՜
ޟÁ ËÍߛ ÍË ÁÍ Ëߊ Í՜
:˟Ÿß˜ƒ ‚› ŕƒ Ă™Ô›

ŃÎÍÁ ‚ƒ ˙™ŸŠ -
ŃÎÍÁ ‚ƒ -
ŃÎÍÁ˙ƒ -

˙œ šßÔ ˙™ŸŠ -
˂œ› -
ŕ‚…ß— -

˙Š… ˙™ŸŠ -
Ăߙԛ -
ŋŸœ ˙Š… ˙•‚— ŕÎÁ˜Á ŕƒ -


:݂œ

:ڟœßͅ—™Á ŋ„

: ŗ͌ ݂œ

܃– ˙‚Ĺ›‹–
ÜßÁ ś‹– - Á߂‡ ÍË Ä‚ˆ
ÝßË Ĺ›‹– - Á߂‡ ÍË Ä‚ˆ
Ýߋ ś‹– - Á߂‡ ÍË Ä‚ˆ









Copyright 2001, JavaWorld/PC WORLD Iran/IDG Inc. All rights reserved.