Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java Applications (Paperback)
暫譯: 骯髒富有的客戶:為桌面 Java 應用程式開發動畫和圖形效果 (平裝本)
Chet Haase, Romain Guy
- 出版商: Prentice Hall
- 出版日期: 2007-08-01
- 售價: $2,050
- 貴賓價: 9.5 折 $1,948
- 語言: 英文
- 頁數: 608
- 裝訂: Paperback
- ISBN: 0132413930
- ISBN-13: 9780132413930
-
相關分類:
Java 程式語言
已絕版
買這商品的人也買了...
-
$998$945 -
$580$458 -
$1,590$1,511 -
$1,100$1,078 -
$2,340$2,223 -
$680$537 -
$580$458 -
$520$411 -
$550$435 -
$690$587 -
$580$493 -
$680$537 -
$1,742Java I/O, 2/e (Paperback)
-
$480$408 -
$620$490 -
$1,560$1,326 -
$990$891 -
$600$480 -
$380$300 -
$650$514 -
$1,188Interconnecting Cisco Network Devices, Part 2 (ICND2): (CCNA Exam 640-802 and ICND exam 640-816), 3/e
-
$480$374 -
$960$758 -
$1,260Graphic Java 2, Volume 2, Swing, 3/e (Paperback)
-
$480$379
商品描述
Description
Filthy Rich Clients refers to ultra-graphically rich applications that ooze cool. They suck the user in from the outset and hang on to them with a death grip of excitement. Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications shows you how to build better, more effective, cooler desktop applications that intensify the user experience.
The keys to Filthy Rich Clients are graphical and animated effects. These kinds of effects provide ways of enhancing the user experience of the application through more attractive GUIs, dynamic effects that give your application a pulse, and animated transitions that keep your user connected to the logical flow of the application. The book also discusses how to do so effectively, making sure to enrich applications in sensible ways.
In-depth coverage includes
- Graphics and GUI fundamentals: Dig deep into the internals of how Swing and Java 2D work together to display GUI applications onscreen. Learn how to maximize the flexibility of these libraries and use them most effectively.
- Performance: Follow in-depth discussions and tips throughout the book that will help you write high-performing GUI applications.
- Images: Understand how images are created and used to make better Java applications.
- Advanced graphics: Learn more about elements of Swing and Java 2D that are of particular benefit to Filthy Rich Clients.
- Animation: Discover general concepts of animation, as well as how to use the facilities provided in the Java platform. Learn new utility libraries that vastly simplify animations in Java.
- Effects: Learn how to create, customize, and use static and animated effects—the mainstays of Filthy Rich Clients.
Code examples illustrate key concepts, and the book’s companion Web site, http://filthyrichclients.org, includes extensive demos, utility libraries, additional information on related technologies, and more.
Informal, fun, and, most of all, useful, this book is great for any developer working with Java to build desktop applications.
Table of Contents
Foreword xvii
Preface xix
Acknowledgments xxv
About the Authors xxvii
Introduction 1
Part I: Graphics and GUI Fundamentals 9
Chapter 1: Desktop Java Graphics APIs: Swing, AWT, and Java 2D 11
Abstract Window Toolkit (AWT) 12
Java 2D 13
Swing 13
Chapter 2: Swing Rendering Fundamentals 15
Events 16
Swing Painting 17
Swing Rendering 20
Double-Buffering 28
Threading 31
Chapter 3: Graphics Fundamentals 43
Java 2D 43
Rendering 45
Chapter 4: Images 91
Image Types 92
BufferedImage 95
Image Scaling 98
Chapter 5: Performance 115
Use the Clip 115
Compatible Images 121
Managed Images 126
Intermediate Images 134
Optimal Primitive Rendering 143
Benchmark 144
Command-Line Flags 145
Part II: Advanced Graphics Rendering 151
Chapter 6: Composites 153
AlphaComposite 153
AlphaComposite: The 12 Rules 155
Creating and Setting Up an AlphaComposite 163
Common Uses of AlphaComposite 164
Issues with AlphaComposite 168
Create Your Own Composite 170
Summary 177
Chapter 7: Gradients 179
Two-Stops Linear Gradient 179
Special Effects with Regular Gradients 182
Multistops Linear Gradient 187
Radial Gradient 189
Optimizing Gradients 193
Chapter 8: Image Processing 199
Image Filters 200
Processing an Image with BufferedImageOp 201
AffineTransformOp 203
ColorConvertOp 204
ConvolveOp 206
LookupOp 211
RescaleOp 213
Custom BufferedImageOp 214
A Note about Filters Performance 222
Summary 222
Chapter 9: Glass Pane 223
Painting on the Glass Pane 225
Blocking Input Events 230
Chapter 10: Layered Panes 237
Using Layered Pane Layers 238
Ordering Components within a Single Layer 242
Layered Panes and Layouts 243
Alternative to JLayeredPane with Layouts 244
Chapter 11: Repaint Manager 249
When Swing Gets Too Smart 249
Meet the RepaintManager 251
A Reflection on RepaintManager 253
Summary 262
Part III: Animation 263
Chapter 12: Animation Fundamentals 265
It’s About Time 265
Fundamental Concepts 266
Frame-Based Animation 266
Timing (and Platform Timing Utilities) 275
Resolution 288
Animating Your Swing Application 300
Summary 314
Chapter 13: Smooth Moves 315
Background: Why Does My Animation Look Bad? 315
What Makes Animations Choppy, and How to Smooth Them Out 316
SmoothMoves: The Demo 335
Summary 341
Chapter 14: Timing Framework: Fundamentals 343
Introduction 343
Core Concepts 345
Interpolation 359
Summary 378
Chapter 15: Timing Framework: Advanced Features 379
Triggers 379
Property Setters 392
Summary 420
Part IV: Effects 421
Chapter 16: Static Effects 423
Blur 423
Reflection 434
Drop Shadows 437
Highlights 442
Sharpening 450
Summary 458
Chapter 17: Dynamic Effects 459
Motion 460
Fading 465
Pulse 473
Spring 484
Morphing 489
Summary 495
Chapter 18: Animated Transitions 497
Animating Application State Segues 497
Animated Transitions: The Library 501
Example: SearchTransition 503
Example: SearchTransition Revisited: Customization 516
Example: ImageBrowser 519
Animated Transitions: Under the Hood, or How Do You Get Swing to Do That? 527
Summary 530
Chapter 19: Birth of a Filthy Rich Client 531
Aerith 531
Workflow Paper Design 533
The Vision 535
Screen Paper Design 537
Mockup 538
From Mockup to Code 540
But . . . I’m Not an Artist! 544
Choosing Nice Colors 545
Read Design Books 547
Summary 548
Conclusion 549
Index 553
商品描述(中文翻譯)
**描述**
Filthy Rich Clients 指的是超級圖形豐富的應用程式,散發著酷炫的氛圍。它們從一開始就吸引使用者,並以興奮的死死抓住他們。書籍《Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications》教你如何構建更好、更有效、更酷的桌面應用程式,增強使用者體驗。
Filthy Rich Clients 的關鍵在於圖形和動畫效果。這些效果提供了增強應用程式使用者體驗的方式,包括更具吸引力的 GUI、賦予應用程式脈動的動態效果,以及保持使用者與應用程式邏輯流程連結的動畫過渡。這本書還討論了如何有效地實現這些效果,確保以合理的方式豐富應用程式。
深入的內容涵蓋:
- 圖形和 GUI 基礎:深入了解 Swing 和 Java 2D 如何協同工作以在螢幕上顯示 GUI 應用程式。學習如何最大化這些庫的靈活性並最有效地使用它們。
- 性能:全書中深入的討論和提示將幫助你編寫高效能的 GUI 應用程式。
- 圖像:了解圖像是如何創建和使用的,以製作更好的 Java 應用程式。
- 進階圖形:了解 Swing 和 Java 2D 中對 Filthy Rich Clients 特別有益的元素。
- 動畫:發現動畫的一般概念,以及如何使用 Java 平台提供的功能。學習新的實用庫,極大簡化 Java 中的動畫。
- 效果:學習如何創建、自定義和使用靜態和動畫效果——Filthy Rich Clients 的主要支柱。
代碼示例說明了關鍵概念,書籍的伴隨網站 [http://filthyrichclients.org](http://filthyrichclients.org) 包含了廣泛的演示、實用庫、相關技術的附加資訊等。
這本書非正式、有趣,最重要的是實用,對於任何使用 Java 開發桌面應用程式的開發者來說都是極好的資源。
**目錄**
前言 xvii
序言 xix
致謝 xxv
關於作者 xxvii
導言 1
第一部分:圖形和 GUI 基礎 9
第 1 章:桌面 Java 圖形 API:Swing、AWT 和 Java 2D 11
抽象窗口工具包 (AWT) 12
Java 2D 13
Swing 13
第 2 章:Swing 渲染基礎 15
事件 16
Swing 繪圖 17
Swing 渲染 20
雙緩衝 28
執行緒 31
第 3 章:圖形基礎 43
Java 2D 43
渲染 45
第 4 章:圖像 91
圖像類型 92
BufferedImage 95
圖像縮放 98
第 5 章:性能 115
使用 Clip 115
相容圖像 121
管理圖像 126
中介圖像 134
最佳原始渲染 143
基準測試 144
命令行標誌 145
第二部分:進階圖形渲染 151
第 6 章:合成 153
AlphaComposite 153
AlphaComposite:12 條規則 155
創建和設置 AlphaComposite 163
AlphaComposite 的常見用途 164
AlphaComposite 的問題 168
創建自己的合成 170
摘要 177
第 7 章:漸層 179
兩停線性漸層 179
使用常規漸層的特殊效果 182
多停線性漸層 187
徑向漸層 189
優化漸層 193
第 8 章:圖像處理 199
圖像濾鏡 200
使用 BufferedImageOp 處理圖像 201
AffineTransformOp 203
ColorConvertOp 204
ConvolveOp 206
LookupOp 211
RescaleOp 213
自定義 BufferedImageOp 214
有關濾鏡性能的說明 222
摘要 222
第 9 章:玻璃面板 223
在玻璃面板上繪圖 225
阻止輸入事件 230
第 10 章:分層面板 237
使用分層面板層 238
在單一層內排序組件 242
分層面板和佈局 243
使用佈局的 JLayeredPane 替代方案 244
第 11 章:重繪管理器 249
當 Swing 變得過於聰明 249
認識重繪管理器 251
對重繪管理器的反思 253
摘要 262
第三部分:動畫 263
第 12 章:動畫基礎 265
時間的問題 265
基本概念 266
基於幀的動畫 266
計時(和平台計時工具) 275
解析度 288
為你的 Swing 應用程式添加動畫 300
摘要 314
第 13 章:平滑移動 315
背景:為什麼我的動畫看起來很糟? 315
什麼使動畫顯得不流暢,以及如何使其平滑 316
SmoothMoves:演示 335
摘要 341
第 14 章:計時框架:基礎 343
導言 343
核心概念 345
插值 359
摘要 378
第 15 章:計時框架:進階功能 379
觸發器 379
屬性設置器 392
摘要 420
第四部分:效果 421
第 16 章:靜態效果 423
模糊 423
反射 434
投影陰影 437
高光 442
銳化 450
摘要 458
第 17 章:動態效果 459
運動 460
淡出 465
脈動 473
彈簧 484
變形 489
摘要 495
第 18 章:動畫過渡 497
動畫應用狀態過渡 497
動畫過渡:庫 501
示例:SearchTransition 503
示例:SearchTransition 再訪:自定義 516
示例:ImageBrowser 519
動畫過渡:內部運作,或如何讓 Swing 做到這一點? 527
摘要 530
第 19 章:Filthy Rich Client 的誕生 531
Aerith 531
工作流程紙張設計 533
願景 535
螢幕紙張設計 537
模型 538
從模型到代碼 540
但是……我不是藝術家! 544
選擇漂亮的顏色 545
閱讀設計書籍 547
摘要 548
結論 549
索引 553