|
Whole document tree
java.awt
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
static AlphaComposite |
Clear
AlphaComposite object that implements the opaque CLEAR rule
with an alpha of 1.0f. |
static int |
CLEAR
Porter-Duff Clear rule. |
static int |
DST_IN
Porter-Duff Destination In Source rule. |
static int |
DST_OUT
Porter-Duff Destination Held Out By Source rule. |
static int |
DST_OVER
Porter-Duff Destination Over Source rule. |
static AlphaComposite |
DstIn
AlphaComposite object that implements the opaque DST_IN rule
with an alpha of 1.0f. |
static AlphaComposite |
DstOut
AlphaComposite object that implements the opaque DST_OUT rule
with an alpha of 1.0f. |
static AlphaComposite |
DstOver
AlphaComposite object that implements the opaque DST_OVER rule
with an alpha of 1.0f. |
static AlphaComposite |
Src
AlphaComposite object that implements the opaque SRC rule
with an alpha of 1.0f. |
static int |
SRC
Porter-Duff Source rule. |
static int |
SRC_IN
Porter-Duff Source In Destination rule. |
static int |
SRC_OUT
Porter-Duff Source Held Out By Destination rule. |
static int |
SRC_OVER
Porter-Duff Source Over Destination rule. |
static AlphaComposite |
SrcIn
AlphaComposite object that implements the opaque SRC_IN rule
with an alpha of 1.0f. |
static AlphaComposite |
SrcOut
AlphaComposite object that implements the opaque SRC_OUT rule
with an alpha of 1.0f. |
static AlphaComposite |
SrcOver
AlphaComposite object that implements the opaque SRC_OVER rule
with an alpha of 1.0f. |
| Method Summary | |
CompositeContext |
createContext(ColorModel srcColorModel,
ColorModel dstColorModel,
RenderingHints hints)
Creates a context for the compositing operation. |
boolean |
equals(Object obj)
Tests if the specified Object is equal to this
AlphaComposite object. |
float |
getAlpha()
Returns the alpha value of this AlphaComposite. |
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()
Returns the compositing rule of this AlphaComposite. |
int |
hashCode()
Returns the hashcode for this composite. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CLEAR
Fs = 0 and Fd = 0, thus:
Cd = 0 Ad = 0
public static final int SRC
Fs = 1 and Fd = 0, thus:
Cd = Cs Ad = As
public static final int SRC_OVER
Fs = 1 and Fd = (1-As), thus:
Cd = Cs + Cd*(1-As) Ad = As + Ad*(1-As)
public static final int DST_OVER
Fs = (1-Ad) and Fd = 1, thus:
Cd = Cs*(1-Ad) + Cd Ad = As*(1-Ad) + Ad
public static final int SRC_IN
Fs = Ad and Fd = 0, thus:
Cd = Cs*Ad Ad = As*Ad
public static final int DST_IN
Fs = 0 and Fd = As, thus:
Cd = Cd*As Ad = Ad*As
public static final int SRC_OUT
Fs = (1-Ad) and Fd = 0, thus:
Cd = Cs*(1-Ad) Ad = As*(1-Ad)
public static final int DST_OUT
Fs = 0 and Fd = (1-As), thus:
Cd = Cd*(1-As) Ad = Ad*(1-As)
public static final AlphaComposite Clear
AlphaComposite object that implements the opaque CLEAR rule
with an alpha of 1.0f.CLEARpublic static final AlphaComposite Src
AlphaComposite object that implements the opaque SRC rule
with an alpha of 1.0f.SRCpublic static final AlphaComposite SrcOver
AlphaComposite object that implements the opaque SRC_OVER rule
with an alpha of 1.0f.SRC_OVERpublic static final AlphaComposite DstOver
AlphaComposite object that implements the opaque DST_OVER rule
with an alpha of 1.0f.DST_OVERpublic static final AlphaComposite SrcIn
AlphaComposite object that implements the opaque SRC_IN rule
with an alpha of 1.0f.SRC_INpublic static final AlphaComposite DstIn
AlphaComposite object that implements the opaque DST_IN rule
with an alpha of 1.0f.DST_INpublic static final AlphaComposite SrcOut
AlphaComposite object that implements the opaque SRC_OUT rule
with an alpha of 1.0f.SRC_OUTpublic static final AlphaComposite DstOut
AlphaComposite object that implements the opaque DST_OUT rule
with an alpha of 1.0f.DST_OUT| Method Detail |
public static AlphaComposite getInstance(int rule)
AlphaComposite object with the specified rule.public static AlphaComposite getInstance(int rule, float alpha)
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.rule - the compositing rulealpha - the constant alpha to be multiplied with the alpha of
the source. alpha must be a floating point number in the
inclusive range [0.0, 1.0].public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
createContext in interface CompositesrcColorModel - the ColorModel of the sourcedstColorModel - the ColorModel of the destinationCompositeContext object to be used to perform
compositing operations.public float getAlpha()
AlphaComposite. If this
AlphaComposite does not have an alpha value, 1.0 is returned.AlphaComposite.public int getRule()
AlphaComposite.AlphaComposite.public int hashCode()
public boolean equals(Object obj)
Object is equal to this
AlphaComposite object.obj - the Object to test for equalitytrue if obj equals this
AlphaComposite; false otherwise.
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.