AlphaComposite (Java SE 24 & JDK 24)
- All Implemented Interfaces:
Composite
-
Field Summary
Fields
AlphaCompositeobject that implements the opaque CLEAR rule with an alpha of 1.0f.static final intBoth the color and the alpha of the destination are cleared (Porter-Duff Clear rule).
AlphaCompositeobject that implements the opaque DST rule with an alpha of 1.0f.static final intThe destination is left untouched (Porter-Duff Destination rule).
static final intThe part of the destination lying inside of the source is composited over the source and replaces the destination (Porter-Duff Destination Atop Source rule).
static final intThe part of the destination lying inside of the source replaces the destination (Porter-Duff Destination In Source rule).
static final intThe part of the destination lying outside of the source replaces the destination (Porter-Duff Destination Held Out By Source rule).
static final intThe destination is composited over the source and the result replaces the destination (Porter-Duff Destination Over Source rule).
AlphaCompositeobject that implements the opaque DST_ATOP rule with an alpha of 1.0f.AlphaCompositeobject that implements the opaque DST_IN rule with an alpha of 1.0f.AlphaCompositeobject that implements the opaque DST_OUT rule with an alpha of 1.0f.AlphaCompositeobject that implements the opaque DST_OVER rule with an alpha of 1.0f.AlphaCompositeobject that implements the opaque SRC rule with an alpha of 1.0f.static final intThe source is copied to the destination (Porter-Duff Source rule).
static final intThe part of the source lying inside of the destination is composited onto the destination (Porter-Duff Source Atop Destination rule).
static final intThe part of the source lying inside of the destination replaces the destination (Porter-Duff Source In Destination rule).
static final intThe part of the source lying outside of the destination replaces the destination (Porter-Duff Source Held Out By Destination rule).
static final intThe source is composited over the destination (Porter-Duff Source Over Destination rule).
AlphaCompositeobject that implements the opaque SRC_ATOP rule with an alpha of 1.0f.AlphaCompositeobject that implements the opaque SRC_IN rule with an alpha of 1.0f.AlphaCompositeobject that implements the opaque SRC_OUT rule with an alpha of 1.0f.AlphaCompositeobject that implements the opaque SRC_OVER rule with an alpha of 1.0f.AlphaCompositeobject that implements the opaque XOR rule with an alpha of 1.0f.static final intThe part of the source that lies outside of the destination is combined with the part of the destination that lies outside of the source (Porter-Duff Source Xor Destination rule).
-
Method Summary
Creates a context for the compositing operation.
derive(float alpha) Returns a similar
AlphaCompositeobject that uses the specified alpha value.derive(int rule) Returns a similar
AlphaCompositeobject that uses the specified compositing rule.booleanDetermines whether the specified object is equal to this
AlphaComposite.floatgetAlpha()Returns the alpha value of this
AlphaComposite.getInstance(int rule) Creates an
AlphaCompositeobject with the specified rule.getInstance(int rule, float alpha) Creates an
AlphaCompositeobject with the specified rule and the constant alpha to multiply with the alpha of the source.intgetRule()Returns the compositing rule of this
AlphaComposite.inthashCode()Returns the hashcode for this composite.
-
Field Details
-
CLEAR
-
SRC
-
DST
-
SRC_OVER
-
DST_OVER
-
SRC_IN
-
DST_IN
-
SRC_OUT
-
DST_OUT
-
SRC_ATOP
-
DST_ATOP
-
XOR
-
Clear
-
Src
-
Dst
-
SrcOver
-
DstOver
-
SrcIn
-
DstIn
-
SrcOut
-
DstOut
-
SrcAtop
-
DstAtop
-
Xor
-
-
Method Details
-
getInstance
-
getInstance
-
createContext
-
getAlpha
-
getRule
-
derive
-
derive
-
hashCode
-
equals
-