AlphaComposite

Methods
5
Fields
24

Getting one

AlphaComposite.getInstance(…)
AlphaComposite.Clear
AlphaComposite.Src

Methods

MethodReturnsDescription
derive(number)AlphaCompositeThe same rule with alpha. Raises for an alpha out of range.
getAlpha()numberThe extra alpha.
getRule()numberThe rule constant.
equals(any)booleanWhether other is an AlphaComposite with the same rule and alpha.
getInstance(number)AlphaComposite(number) -> AlphaComposite: The composite for rule with alpha 1. Raises for an unknown rule.
getInstance(number, number)AlphaComposite

Fields

FieldTypeDescription
CLEARnumberCLEAR: 1.
SRCnumberSRC: 2.
SRC_OVERnumberSRC_OVER: 3.
DST_OVERnumberDST_OVER: 4.
SRC_INnumberSRC_IN: 5.
DST_INnumberDST_IN: 6.
SRC_OUTnumberSRC_OUT: 7.
DST_OUTnumberDST_OUT: 8.
DSTnumberDST: 9.
SRC_ATOPnumberSRC_ATOP: 10.
DST_ATOPnumberDST_ATOP: 11.
XORnumberXOR: 12.
ClearAlphaCompositeClear, alpha 1.
SrcAlphaCompositeSrc, alpha 1.
SrcOverAlphaCompositeSrcOver, alpha 1: the default.
DstOverAlphaCompositeDstOver, alpha 1.
SrcInAlphaCompositeSrcIn, alpha 1.
DstInAlphaCompositeDstIn, alpha 1.
SrcOutAlphaCompositeSrcOut, alpha 1.
DstOutAlphaCompositeDstOut, alpha 1.
DstAlphaCompositeDst, alpha 1.
SrcAtopAlphaCompositeSrcAtop, alpha 1.
DstAtopAlphaCompositeDstAtop, alpha 1.
XorAlphaCompositeXor, alpha 1.

Returned by

MethodReturnsDescription
AlphaCompositeClass.getInstanceAlphaComposite(number) -> AlphaComposite: The composite for rule with alpha 1. Raises for an unknown rule.
Graphics2D.getCompositeAlphaCompositeThe current composite.

Method details

equals

equals: (AlphaComposite, any) -> boolean

Whether other is an AlphaComposite with the same rule and alpha.

getInstance

getInstance: ((number) -> AlphaComposite) & ((number, number) -> AlphaComposite)

(number) -> AlphaComposite: The composite for rule with alpha 1. Raises for an unknown rule.

(number, number) -> AlphaComposite: The composite for rule with alpha (0..1). Raises for an unknown rule or an alpha out of range.