Chapter 6. Composites

COMPOSITES are very important tools for programmers of Filthy Rich Clients. A composite can be thought of as a rule that determines how to store or combine the colors of a drawing primitive into the destination. A composite could, for instance, state that only the red components of the drawing primitive can be copied onto the graphics area. Composites are also known as blending modes in graphics editing applications like Adobe Photoshop or The GIMP, in which they are often used to create complex lighting effects. In Java, a Composite is an instance of the interface java.awt.Composite and can be set on a Graphics2D by calling setComposite().

AlphaComposite

The Java platform comes with only one implementation of Composite, ...

Get Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.