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

Class AlphaComposite

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

All Implemented Interfaces:

Composite


public final class AlphaComposite

extends Object

implements Composite

Since:Author:See Also:

Field Summary

static intCLEAR

static java.awt.AlphaCompositeClear

static intDST

static intDST_ATOP

static intDST_IN

static intDST_OUT

static intDST_OVER

static java.awt.AlphaCompositeDst

static java.awt.AlphaCompositeDstAtop

static java.awt.AlphaCompositeDstIn

static java.awt.AlphaCompositeDstOut

static java.awt.AlphaCompositeDstOver

static intSRC

static intSRC_ATOP

static intSRC_IN

static intSRC_OUT

static intSRC_OVER

static java.awt.AlphaCompositeSrc

static java.awt.AlphaCompositeSrcAtop

static java.awt.AlphaCompositeSrcIn

static java.awt.AlphaCompositeSrcOut

static java.awt.AlphaCompositeSrcOver

static intXOR

static java.awt.AlphaCompositeXor

Method Summary

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

booleanequals(java.lang.Object o)

floatgetAlpha()

static java.awt.AlphaCompositegetInstance(int rule)

Creates an AlphaComposite object with the specified rule.
static java.awt.AlphaCompositegetInstance(int rule, float alpha)

Creates an AlphaComposite object with the specified rule and the constant alpha to multiply with the alpha of the source.
intgetRule()

inthashCode()

Field Details

CLEAR

public static final int CLEAR


Clear

public static final AlphaComposite Clear


DST

public static final int DST


DST_ATOP

public static final int DST_ATOP


DST_IN

public static final int DST_IN


DST_OUT

public static final int DST_OUT


DST_OVER

public static final int DST_OVER


Dst

public static final AlphaComposite Dst


DstAtop

public static final AlphaComposite DstAtop


DstIn

public static final AlphaComposite DstIn


DstOut

public static final AlphaComposite DstOut


DstOver

public static final AlphaComposite DstOver


SRC

public static final int SRC


SRC_ATOP

public static final int SRC_ATOP


SRC_IN

public static final int SRC_IN


SRC_OUT

public static final int SRC_OUT


SRC_OVER

public static final int SRC_OVER


Src

public static final AlphaComposite Src


SrcAtop

public static final AlphaComposite SrcAtop


SrcIn

public static final AlphaComposite SrcIn


SrcOut

public static final AlphaComposite SrcOut


SrcOver

public static final AlphaComposite SrcOver


XOR

public static final int XOR


Xor

public static final AlphaComposite Xor


Method Details

createContext

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

Parameters:


equals

public boolean equals(java.lang.Object o)

Parameters:


getAlpha

public float getAlpha()


getInstance

public static AlphaComposite getInstance(int rule)

Creates an AlphaComposite object with the specified rule.

Parameters:

Throws:


getInstance

public static AlphaComposite getInstance(int rule, float alpha)

Creates an AlphaComposite object with the specified rule and the constant alpha to multiply with the alpha of the source. The source is multiplied with the specified alpha before being composited with the destination.

Parameters:

Throws:


getRule

public int getRule()


hashCode

public int hashCode()