Package com.jhlabs.composite
Class MiscComposite
- java.lang.Object
-
- com.jhlabs.composite.MiscComposite
-
- All Implemented Interfaces:
java.awt.Composite
public final class MiscComposite extends java.lang.Object implements java.awt.Composite
-
-
Field Summary
Fields Modifier and Type Field Description static intADDstatic intAVERAGEstatic intBLENDstatic intBURNstatic intCOLORstatic intCOLOR_BURNstatic intCOLOR_DODGEstatic intDARKENstatic intDIFFERENCEstatic intDODGEstatic intEXCLUSIONprotected floatextraAlphastatic intHARD_LIGHTstatic intHUEstatic intLIGHTENstatic intMULTIPLYstatic intNEGATIONstatic intOVERLAYstatic intPIN_LIGHTprotected intrulestatic java.lang.String[]RULE_NAMESstatic intSATURATIONstatic intSCREENstatic intSILHOUETTEstatic intSOFT_LIGHTstatic intSTENCILstatic intSUBTRACTstatic intVALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.CompositeContextcreateContext(java.awt.image.ColorModel srcColorModel, java.awt.image.ColorModel dstColorModel, java.awt.RenderingHints hints)booleanequals(java.lang.Object o)floatgetAlpha()static java.awt.CompositegetInstance(int rule, float alpha)intgetRule()inthashCode()
-
-
-
Field Detail
-
BLEND
public static final int BLEND
- See Also:
- Constant Field Values
-
ADD
public static final int ADD
- See Also:
- Constant Field Values
-
SUBTRACT
public static final int SUBTRACT
- See Also:
- Constant Field Values
-
DIFFERENCE
public static final int DIFFERENCE
- See Also:
- Constant Field Values
-
MULTIPLY
public static final int MULTIPLY
- See Also:
- Constant Field Values
-
DARKEN
public static final int DARKEN
- See Also:
- Constant Field Values
-
BURN
public static final int BURN
- See Also:
- Constant Field Values
-
COLOR_BURN
public static final int COLOR_BURN
- See Also:
- Constant Field Values
-
SCREEN
public static final int SCREEN
- See Also:
- Constant Field Values
-
LIGHTEN
public static final int LIGHTEN
- See Also:
- Constant Field Values
-
DODGE
public static final int DODGE
- See Also:
- Constant Field Values
-
COLOR_DODGE
public static final int COLOR_DODGE
- See Also:
- Constant Field Values
-
HUE
public static final int HUE
- See Also:
- Constant Field Values
-
SATURATION
public static final int SATURATION
- See Also:
- Constant Field Values
-
VALUE
public static final int VALUE
- See Also:
- Constant Field Values
-
COLOR
public static final int COLOR
- See Also:
- Constant Field Values
-
OVERLAY
public static final int OVERLAY
- See Also:
- Constant Field Values
-
SOFT_LIGHT
public static final int SOFT_LIGHT
- See Also:
- Constant Field Values
-
HARD_LIGHT
public static final int HARD_LIGHT
- See Also:
- Constant Field Values
-
PIN_LIGHT
public static final int PIN_LIGHT
- See Also:
- Constant Field Values
-
EXCLUSION
public static final int EXCLUSION
- See Also:
- Constant Field Values
-
NEGATION
public static final int NEGATION
- See Also:
- Constant Field Values
-
AVERAGE
public static final int AVERAGE
- See Also:
- Constant Field Values
-
STENCIL
public static final int STENCIL
- See Also:
- Constant Field Values
-
SILHOUETTE
public static final int SILHOUETTE
- See Also:
- Constant Field Values
-
RULE_NAMES
public static java.lang.String[] RULE_NAMES
-
extraAlpha
protected float extraAlpha
-
rule
protected int rule
-
-
Method Detail
-
getInstance
public static java.awt.Composite getInstance(int rule, float alpha)
-
createContext
public java.awt.CompositeContext createContext(java.awt.image.ColorModel srcColorModel, java.awt.image.ColorModel dstColorModel, java.awt.RenderingHints hints)- Specified by:
createContextin interfacejava.awt.Composite
-
getAlpha
public float getAlpha()
-
getRule
public int getRule()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-