java.awt
public final class AlphaComposite extends Object implements Composite
Since: 1.3
See Also: Composite CompositeContext
UNKNOWN: updated to 1.4 except for createContext, needs documentation
Field Summary | |
---|---|
static AlphaComposite | Clear |
static int | CLEAR |
static AlphaComposite | Dst |
static AlphaComposite | DstAtop |
static AlphaComposite | DstIn |
static AlphaComposite | DstOut |
static AlphaComposite | DstOver |
static int | DST |
static int | DST_ATOP |
static int | DST_IN |
static int | DST_OUT |
static int | DST_OVER |
static AlphaComposite | Src |
static AlphaComposite | SrcAtop |
static AlphaComposite | SrcIn |
static AlphaComposite | SrcOut |
static AlphaComposite | SrcOver |
static int | SRC |
static int | SRC_ATOP |
static int | SRC_IN |
static int | SRC_OUT |
static int | SRC_OVER |
static AlphaComposite | Xor |
static int | XOR |
Method Summary | |
---|---|
CompositeContext | createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
Creates a {@link CompositeContext} that can be used to perform
compositing operations according to this AlphaComposite settings.
|
boolean | equals(Object o) |
float | getAlpha() |
static AlphaComposite | getInstance(int rule)
Creates an AlphaComposite object with the specified rule.
|
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. |
int | getRule() |
int | hashCode() |
Parameters: srcColorModel the color model of the source raster dstColorModel the color model of the destination raster hints the rendering hints to use
Returns: a {@link CompositeContext} that can be used to perform compositing operations according to this AlphaComposite settings
Parameters: rule The compositing rule.
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.
Parameters: rule The compositing rule.
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.