Haase_index.fm Page 553 Thursday, July 12, 2007 12:34 PM Index A creating, 163–164 Abstract Window Toolkit (AWT), 12–13 cutouts, 167 Acceleration, interpolating, 360–363 description, 153–155 ActionTrigger, 384 destination pixels, 156 Acyclic gradients, 195–197 drop shadow, 167 Add composite, 171–175 Dst rule, 157 Adobe kuler, 547 DstAtop rule, 158 Aerith DstIn rule, 158 blending modes, 542 DstOut rule, 159 coding applications DstOver rule, 159 blending modes, 542 erasing a background, 157, 165 layers, 540–542 picture frames, 167 from screen mockups, 540–544 Porter-Duff equations, 153–154 history of, 531–532 Porter-Duff rules, 155–162 online resources, 550 problems with, 168–170 running, 532–533 replacing existing drawings, 161, 166–168 screen mockups setting up, 163–164 coding from, 540–544 soft-clipping, 168 colors, 545–547 source pixels, 156 gradients, 547 Src rule, 160 guides, 543 SrcAtop rule, 160 required skills, 544–545 SrcIn rule, 161, 166–168 workflow design, 538–539 SrcOut rule, 161 workflow design SrcOver rule, 162, 165–166 with a graphics editor, 535–537 temporary offscreen images, 170 on paper, 533–535, 537–538 translucency effect, 162, 165–166 screen mockups, 538–543 Xor rule, 162 Affine transforms, 63–70, 203–204 AlphaComposite class, 468–470 AffineTransformOp filter, 203–204 Anchor points, 369 AJAX (Asynchronous JavaScript and Animated Transitions, 497–530 XML), 2–3 Animation. See also Motion effects. AlphaComposite. See also Composites. frame rate antialiased-clipping, 168 frame-based animation, 268 Clear rule, 157, 165 minimum required, 289–290 common uses, 164–168 smoothing, 318, 332 553 Haase_index.fm Page 554 Thursday, July 12, 2007 12:34 PM 554 INDEX Animation, continued time-based frame-based definition, 265 flicker, 269 flicker, 269 frame rate, 268 intermediate steps, 270 intermediate steps, 270 linear interpolation, 273–274 linear interpolation, 273–274 problems, 268–275 overview, 266–268 realistic motion, 272–275 problems, 268–275 speed, 269–271 realistic motion, 272–275 Swing buffering, 269, 271–272 speed, 269–271 timer resolution. See also Timing Swing buffering, 269, 271–272 Framework. GUIs, 303–304 currentTimeMillis(), 291–293 repeating, 345, 351–352 definition, 288–289 running, querying, 347 increasing, 278 smoothing measuring, 297–299 antialiasing, 327, 340–341 milliseconds, 276–278, 291–293 apparent smoothness, 320 nanoseconds, 278, 291–293 blur effect, 339–340 nanoTime(), 291–293 bouncing motion, 320 performance, 288, 290, 299–300 color effect, 320–329, 332, 338–339 sleeping, 293–297 color spaces, 322 timer utilities. See also Timing consistency, 318–319 Framework. contrast, 325–326 callbacks, 284–285 demo, 335–341 currentTimeMillis(), 276–278 double buffering, 334 demos, 282–284, 286–288 frame rates, 318, 332 fixed delay, 285 hard edges, 326–327 fixed rate, 285 jumpy motion, 328–329 interframe volatility, 277–278 linear shapes, 332 milliseconds, 276–278 motion blur, 328–329 nanoseconds, 278 object color, versus background, nanoTime(), 278 325–326 querying current time, 275–278 perceived performance, 316 sleep(), 279–280, 293–297 performance, 317–318 sleeping, 279–282, 293–297 pixel color change, 322–323 Timer (java.util), 282 realistic motion, 319–320 Timer (javax.swing), 284–288 rendering, 337–341 timers, 280–284 resolution, optimizing, 318–319 wait(), 279–280, 295–297 straight edges, 327–328 wake-up calls, 279–282 tearing, 330 transitions. See Transitions. timing effect, 317–320 Animator class vertical retrace effect, 329–334 cancel(), 347 starting, 345, 347, 352–353 constructor methods, 346 stopping, 347, 353 control flow, 347 Haase_index.fm Page 555 Thursday, July 12, 2007 12:34 PM INDEX 555 definition, 345 box, 426–428 description, 346 depth of field, 423 isRunning(), 347 description, 423–425 pause(), 347 Gaussian, 428–432 resume(), 347 motion blur, 328–329 start(), 347 performance, 433–434 stop(), 347 reflection, 435–437 Antialiased-clipping, 168 simple, 426–428 Antialiasing Bokeh, 423–424 demo, 56 Books and publications. See also Online description, 54–56 resources. jaggies, 54 “Compositing Digital Images,” 153 shapes, 57 Computer Graphics Principles and smoothing animation, 327, 340–341 Practices, 377 text, 57–59 Filthy Rich Clients, online resources, 551 AntiAliasingDemo demo, 56 The Geometry Toolbox for Graphics and Area averaging, image scaling, 103–104 Modeling, 377 Articles. See Books and publications. “The Perils of Asynchronous JavaScript and XML Image.getScaledInstance(),” 98 (AJAX), 2–3 System Properties for Java 2D..., 145 Asynchronous paint requests, 17–19 user interface design, 547 Authors’ sites, xxiii, 551 visual design, 547 Autoboxing, 405 Borders, on components, 75 Auto-reversing triggers, 381 Boring stuff, not found AWT (Abstract Window Toolkit), Box blur, 426–428 12–13 Bright spots, simulating, 189–192 Brightening, 213–214, 444–446 brighter(), 444 B BufferedImage objects Back buffers, 29 advantages of, 95–96 Backgrounds converting images to, 96–97 color, graphics state, 49, 50 definition, 93 color, versus object color, 325–326 transparent/translucent images, 97 erasing, 157, 165 BufferedImageOp filter, 201–203, 214–221 BasicRace demo, 358–359, 363–364 Buttons layer, 238 Bicubic image scaling, 102–104 Bilinear image scaling, 102–104 Blending modes, 542. See also C AlphaComposite; Composites. Caching Blocking EDT, 31–32 gradients, 193–195 Bloom effect, 6, 478–482 intermediate images, 134–141 Blur Callbacks animation, 339–340 cleanup operations, 348–349 bokeh, 423–424 definition, 345 Haase_index.fm Page 556 Thursday, July 12, 2007 12:34 PM 556 INDEX Callbacks, continued Compatible images Swing event thread, 284–285 converting to, 124–126 timing events, receiving, 348–350 definition, 94 timing targets, 349–350 performance, 121–126 Campbell, Chris, 98, 111, 147 uses for, 122–123 cancel(), 347 compose(), 174–177 Canceling triggers, 381 Composing pixels, 174–177 Choppy animation. See Animation, smoothing. CompositeContext composite, 174–175 Circular gradients, 189–192 CompositeEffect effect, 512–513 Clear rule, 157, 165 Composites. See also AlphaComposite. clip(), 61 adding source/destination values, 171–174 The clip composing pixels, 174–177 constraining primitives to, 120 creating graphics state, 49, 61–62 Add composite, 171–175 honoring, 117–120 CompositeContext composite, performance, 115–121 174–175 Clipping images overview, 170–171 antialiased-clipping, 168 defining area for, 174–177 the clip, 121 graphics state, 49 soft-clipping, 168 immutability, 173 clipRect(), 61 library of, 171 Coalescing paint requests, 18 “Compositing Digital Images,” 153 Color Schemer Online, 546 Computer Graphics Principles and Color Schemer Studio, 546 Practices, 377 Color spaces, animation, 322 Consistency, animation, 318–319 ColorConvertOp filter, 204–206 Contrast, animation, 325–326 Colors Control points, 369 channels, 154 Convolution kernel, 206–209 effects on animation, 320–329, 332, ConvolveOp filter, 206–211 338–339 Convolving images, 206–211 fading, 470–472 Cooler applications, 1–552 graphics primitives, 63–64 copyArea(), 83 mapping source/destination, 211–213 CopyAreaPerformance demo, 83–87 model conversion, 204–206, 211–213 Copying areas, 83–87 object, versus background, 325–326 Cross-fading, 472 online resources, 546–547 currentTimeMillis(), 276–278, 291–293 opacity. See Opacity; Translucency; Custom interpolation, 377–378 Transparency. Cutouts, 167 rules for. See AlphaComposite; Cyclic gradients, 195–197 Composites. screen mockups, 545–547 COLOURlovers, 547 D Combo-box drop-down layer, 238 Darkening images, 213–214 Command-line flags, 145–149 Data binding, 1 Haase_index.fm Page 557 Thursday, July 12, 2007 12:34 PM INDEX 557 DataBuffer, grabbing, 129–132 PictureScaler, 109–111 Deadlock, 35–37 Pulse, 474–478 Debugging performance, 148–149 PulseField, 482–484 Deceleration, interpolating, 360–363 reflection, 253–262 Demos RepaintManager, 253–262 animation rotating objects, 63–64, 67–68, 68–74 FadingButton, 304–306 RotationAboutCenter, 68–74 MovingButton, 306–310 ScaleTest, 105–109 MovingButtonContainer, 310–314 scaling images, 105–109, 109–111 SmoothMoves, 335–341 SearchTransition, 503–509, 516–518 SwingTimerDemo, 286–288 simulated depth, 180–181 UtilTimerDemo, 282–284 SmoothMoves, 335–341 AntiAliasingDemo, 56 Spring, 486–489 color, graphics primitives, 63–64 text hints, setting, 59–68 CopyAreaPerformance, 83–87 Timing Framework copying areas, 83–87 BasicRace, 358–359, 363–364 custom components, matching desktop bouncing spheres, 382–392 settings, 59–68 FadingButton, 353–356 DiagonalLine, 74–75 interpolation, 363–364 donut shape, 79 Interpolator, 372–378 drawing, 87–89 interpolator race, 363–364 drawing shapes, 80–83 KeyFrames class, 414–419 DrawShapes, 80–83 MultiStepRace, 414–419 Fading, 468–470 property setters, 393–395 FillDraw, 87–89 PropertySetter class, 398 filling, 87–89 racetrack, 356–359, 398–399, filling a blank canvas, 22–23 414–419 FontHints, 59–68 SetterRace, 398 gradients, 180–181 spline interpolation, 372–375, 376–378 graphics state SplineEditor, 376–378 persistence, 71–72 SplineInterpolatorTest, 372–375 setting, 51–54 triggers, 382–392 image scaling transformations, 63–64, 67–68 high resolution pictures, 109–111 translating objects, 63–64, 67–68 photographs, 105–109 translucency, 249–251 progressively larger images, 105–109 TranslucentPanel, 249–251 scale(), 63–64, 67–68 Depth of field, 423 vector drawings, 105–109 derive(), 164 ImageBrowser, 519–526 Design books, 547 IntermediateImages, 137–142 Design tools. See Aerith. loaded file names, displaying, 39–41 Desktop Java Graphics APIs.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages20 Page
-
File Size-