| java.lang.Object java.awt.AlphaComposite
Field Summary | |
final public static int | CLEAR Porter-Duff Clear rule. | final public static AlphaComposite | Clear AlphaComposite object that implements the opaque CLEAR rule
with an alpha of 1.0f. | final public static int | SRC Porter-Duff Source rule. | final public static int | SRC_OVER Porter-Duff Source Over Destination rule. | final public static AlphaComposite | Src AlphaComposite object that implements the opaque SRC rule
with an alpha of 1.0f. | final public static AlphaComposite | SrcOver AlphaComposite object that implements the opaque SRC_OVER rule
with an alpha of 1.0f. | float | extraAlpha | int | rule |
Method Summary | |
public boolean | equals(Object obj) Tests if the specified
Object is equal to this
AlphaComposite object. | public float | getAlpha() Returns the alpha value of thisAlphaComposite . | public static AlphaComposite | getInstance(int rule) Creates an AlphaComposite object with the specified rule. | 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: rule - the compositing rule Parameters: alpha - the constant alpha to be multiplied with the alpha ofthe source. | public int | getRule() Returns the compositing rule of this AlphaComposite . | public int | hashCode() Returns the hashcode for this composite. |
CLEAR | final public static int CLEAR(Code) | | Porter-Duff Clear rule.
Both the color and the alpha of the destination are cleared.
Neither the source nor the destination is used as input.
Fs = 0 and Fd = 0, thus:
Cd = 0
Ad = 0
|
SRC | final public static int SRC(Code) | | Porter-Duff Source rule.
The source is copied to the destination.
The destination is not used as input.
Fs = 1 and Fd = 0, thus:
Cd = Cs
Ad = As
|
SRC_OVER | final public static int SRC_OVER(Code) | | Porter-Duff Source Over Destination rule.
The source is composited over the destination.
Fs = 1 and Fd = (1-As), thus:
Cd = Cs + Cd*(1-As)
Ad = As + Ad*(1-As)
|
extraAlpha | float extraAlpha(Code) | | |
equals | public boolean equals(Object obj)(Code) | | Tests if the specified
Object is equal to this
AlphaComposite object.
Parameters: obj - the Object to test for equality true if obj equals thisAlphaComposite ; false otherwise. |
getAlpha | public float getAlpha()(Code) | | Returns the alpha value of thisAlphaComposite . If this
AlphaComposite does not have an alpha value, 1.0 is returned.
the alpha value of this AlphaComposite . |
getInstance | public static AlphaComposite getInstance(int rule)(Code) | | Creates an AlphaComposite object with the specified rule.
Parameters: rule - the compositing rule throws: IllegalArgumentException - if rule is not one ofthe following: AlphaComposite.CLEAR, AlphaComposite.SRC, AlphaComposite.DST,AlphaComposite.SRC_OVER, AlphaComposite.DST_OVER, AlphaComposite.SRC_IN,AlphaComposite.DST_IN, AlphaComposite.SRC_OUT, AlphaComposite.DST_OUT,AlphaComposite.SRC_ATOP, AlphaComposite.DST_ATOP, or AlphaComposite.XOR |
getInstance | public static AlphaComposite getInstance(int rule, float alpha)(Code) | | 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: rule - the compositing rule Parameters: alpha - the constant alpha to be multiplied with the alpha ofthe source. alpha must be a floating point number in theinclusive range [0.0, 1.0]. |
getRule | public int getRule()(Code) | | Returns the compositing rule of this AlphaComposite .
the compositing rule of this AlphaComposite . |
hashCode | public int hashCode()(Code) | | Returns the hashcode for this composite.
a hash code for this composite. |
|
|