Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Interface Composite

java.lang.Object
|
+--java.awt.Composite


public interface Composite

This interface is for graphics which are formed as composites of others. It combines Graphics2D shapes according to defined rules to form the new image. Implementations of this interface must be immutable, because they are not cloned when a Graphics2D container is cloned.

Since this can expose pixels to untrusted code, there is a security check on custom objects, readDisplayPixels, to prevent leaking restricted information graphically.

Since:Author:See Also:

Method Summary

java.awt.CompositeContextcreateContext(java.awt.image.ColorModel srcColorModel, java.awt.image.ColorModel dstColorModel, java.awt.RenderingHints hints)

Create a context state for performing the compositing operation.

Method Details

createContext

public CompositeContext createContext(java.awt.image.ColorModel srcColorModel, java.awt.image.ColorModel dstColorModel, java.awt.RenderingHints hints)

Create a context state for performing the compositing operation. Several contexts may exist for this object, in a multi-threaded environment.

Parameters: