java.awt

Interface 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: 1.2

See Also: AlphaComposite CompositeContext setComposite

UNKNOWN: updated to 1.4

Method Summary
CompositeContextcreateContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
Create a context state for performing the compositing operation.

Method Detail

createContext

public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
Create a context state for performing the compositing operation. Several contexts may exist for this object, in a multi-threaded environment.

Parameters: srcColorModel the color model of the source dstColorModel the color model of the destination hints hints for choosing between rendering alternatives