java.awt
Class AlphaComposite
java.lang.Object
|
+--java.awt.AlphaComposite
All Implemented Interfaces:
Composite
Since:Author:- Eric Blake <ebb9@email.byu.edu>
See Also:
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
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:
IllegalArgumentException
- If rule is not one of the following:
CLEAR, SRC, DST, SRC_OVER, DST_OVER, SRC_IN, DST_IN, SRC_OUT, DST_OUT,
SRC_ATOP, DST_ATOP, or XOR.
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:
IllegalArgumentException
- If rule is not one of the following:
CLEAR, SRC, DST, SRC_OVER, DST_OVER, SRC_IN, DST_IN, SRC_OUT, DST_OUT,
SRC_ATOP, DST_ATOP, or XOR.
getRule
public int getRule()
hashCode
public int hashCode()