Return to Homegeneral info-bulletjavadashsybase-technical training-instructors
training - java courses - advanced java courses


Advanced Graphics with Java

The Java graphics framework (the AWT) is one of the most commonly used capabilities in Java programming. It is also one of the largest and most complicated portions of the core Java packages. This course covers the capabilities and intricacies that will enable you to improve performance and reduce complexity with a real-world perspective, as well as including the little-known graphics "gotchas," that can jump up and bite you. It's content runs from basic animation through the complexities of the entire java.awt.image package, and completion of it provides the deep understanding required to get the most out of graphics programming in Java.

 

Topics include:
Basic image loading.
getImage()
Tracking image loading with MediaTracker
Embedding images in your code
Embedding GIF data into arrays.
MemoryImageSource
Basic image display
drawImage()
Scaling images
Using the clipping rectangle
Transparency
Using MemoryImageSource to produce an image
Creating the image
Efficiency and real-world considerations
start() and init()
What to put there
Defining the pixel data
What not to put there
AWT and Design Pattems
Overview of Design Patterns
Subjects and Observers
Produce and Consumer
ImageObserver
imageUpdate()
ImageConsumer
Using imageUpdate
A look at the default
Writing your own Image filters
ImageFilter, ImageProducer, FilteredImageSource
Creating and using an ImageFilter
Creating and using an RGBFilter

 

Lab Exercises

Depending on the level of experience in the class it may not be possible to complete all of the graphics labs. In that case, the labs that are of most interest to the class will be covered.

Your first RMI program
Animation
Basic animation
Double buffering
Using the Clipping Rectangle
Using PixelGrabber and MemoryImageSource to OR two images together.
Using MediaTracker to monitor image loading and improve program appearance.
Using imageUpdate to give status information about image loading.
Subclassing ImageFilter - Creating a filter that mirrors an image.
Subclassing RGBFilter - Creating a filter that converts rgb images to gray scale.
Using XOR mode.

 

|   return to top   |