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 int | DST |
| static int | DST_ATOP |
| static int | DST_IN |
| static int | DST_OUT |
| static int | DST_OVER |
| static AlphaComposite | DstAtop |
| static AlphaComposite | DstIn |
| static AlphaComposite | DstOut |
| static AlphaComposite | DstOver |
| static AlphaComposite | Src |
| static int | SRC |
| static int | SRC_ATOP |
| static int | SRC_IN |
| static int | SRC_OUT |
| static int | SRC_OVER |
| static AlphaComposite | SrcAtop |
| static AlphaComposite | SrcIn |
| static AlphaComposite | SrcOut |
| static AlphaComposite | SrcOver |
| static AlphaComposite | Xor |
| static int | XOR |
| Method Summary | |
|---|---|
| CompositeContext | createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
Creates a CompositeContext that can be used to perform
compositing operations according to this AlphaComposite settings.
|
| AlphaComposite | derive(int rule)
Return an AlphaComposite similar to this,
that uses the specified rule. |
| AlphaComposite | derive(float alpha)
Return an AlphaComposite similar to this,
that uses the specified alpha.
|
| 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 CompositeContext that can be used to perform compositing operations according to this AlphaComposite settings
AlphaComposite similar to this,
that uses the specified rule. If rule is the same as
this.rule, then this is returned.
Since: 1.6
AlphaComposite similar to this,
that uses the specified alpha.
If alph is the same as this.alpha,
then this is returned.
Since: 1.6
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.