public final class

XORComposite

extends Object
implements Composite
java.lang.Object
   ↳ sun.java2d.loops.XORComposite

Class Overview

Bitwise XOR Composite class.

Summary

Public Constructors
XORComposite(Color xorColor, SurfaceData sd)
Public Methods
CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
Creates a context containing state that is used to perform the compositing operation.
int getAlphaMask()
Color getXorColor()
int getXorPixel()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.awt.Composite

Public Constructors

public XORComposite (Color xorColor, SurfaceData sd)

Public Methods

public CompositeContext createContext (ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)

Creates a context containing state that is used to perform the compositing operation. In a multi-threaded environment, several contexts can exist simultaneously for a single Composite object.

Parameters
srcColorModel the ColorModel of the source
dstColorModel the ColorModel of the destination
hints the hint that the context object uses to choose between rendering alternatives
Returns
  • the CompositeContext object used to perform the compositing operation.

public int getAlphaMask ()

public Color getXorColor ()

public int getXorPixel ()