All Implemented Interfaces:
Composite

  • Field Summary

    Fields

    AlphaComposite object that implements the opaque CLEAR rule with an alpha of 1.0f.

    static final int

    Both the color and the alpha of the destination are cleared (Porter-Duff Clear rule).

    AlphaComposite object that implements the opaque DST rule with an alpha of 1.0f.

    static final int

    The destination is left untouched (Porter-Duff Destination rule).

    static final int

    The 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 int

    The part of the destination lying inside of the source replaces the destination (Porter-Duff Destination In Source rule).

    static final int

    The part of the destination lying outside of the source replaces the destination (Porter-Duff Destination Held Out By Source rule).

    static final int

    The destination is composited over the source and the result replaces the destination (Porter-Duff Destination Over Source rule).

    AlphaComposite object that implements the opaque DST_ATOP rule with an alpha of 1.0f.

    AlphaComposite object that implements the opaque DST_IN rule with an alpha of 1.0f.

    AlphaComposite object that implements the opaque DST_OUT rule with an alpha of 1.0f.

    AlphaComposite object that implements the opaque DST_OVER rule with an alpha of 1.0f.

    AlphaComposite object that implements the opaque SRC rule with an alpha of 1.0f.

    static final int

    The source is copied to the destination (Porter-Duff Source rule).

    static final int

    The part of the source lying inside of the destination is composited onto the destination (Porter-Duff Source Atop Destination rule).

    static final int

    The part of the source lying inside of the destination replaces the destination (Porter-Duff Source In Destination rule).

    static final int

    The part of the source lying outside of the destination replaces the destination (Porter-Duff Source Held Out By Destination rule).

    static final int

    The source is composited over the destination (Porter-Duff Source Over Destination rule).

    AlphaComposite object that implements the opaque SRC_ATOP rule with an alpha of 1.0f.

    AlphaComposite object that implements the opaque SRC_IN rule with an alpha of 1.0f.

    AlphaComposite object that implements the opaque SRC_OUT rule with an alpha of 1.0f.

    AlphaComposite object that implements the opaque SRC_OVER rule with an alpha of 1.0f.

    AlphaComposite object that implements the opaque XOR rule with an alpha of 1.0f.

    static final int

    The 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 AlphaComposite object that uses the specified alpha value.

    derive(int rule)

    Returns a similar AlphaComposite object that uses the specified compositing rule.

    boolean

    Determines whether the specified object is equal to this AlphaComposite.

    float

    getAlpha()

    Returns the alpha value of this AlphaComposite.

    getInstance(int rule)

    Creates an AlphaComposite object with the specified rule.

    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.

  • 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