com.alee.graphics.filters
Class MiscComposite

java.lang.Object
  extended by com.alee.graphics.filters.MiscComposite
All Implemented Interfaces:
java.awt.Composite

public final class MiscComposite
extends java.lang.Object
implements java.awt.Composite


Field Summary
static int ADD
           
static int AVERAGE
           
static int BLEND
           
static int BURN
           
static int COLOR
           
static int COLOR_BURN
           
static int COLOR_DODGE
           
static int DARKEN
           
static int DIFFERENCE
           
static int DODGE
           
static int EXCLUSION
           
protected  float extraAlpha
           
static int HARD_LIGHT
           
static int HUE
           
static int LIGHTEN
           
static int MULTIPLY
           
static int NEGATION
           
static int OVERLAY
           
static int PIN_LIGHT
           
protected  int rule
           
static java.lang.String[] RULE_NAMES
           
static int SATURATION
           
static int SCREEN
           
static int SILHOUETTE
           
static int SOFT_LIGHT
           
static int STENCIL
           
static int SUBTRACT
           
static int VALUE
           
 
Method Summary
 java.awt.CompositeContext createContext(java.awt.image.ColorModel srcColorModel, java.awt.image.ColorModel dstColorModel, java.awt.RenderingHints hints)
           
 boolean equals(java.lang.Object o)
           
 float getAlpha()
           
static java.awt.Composite getInstance(int rule, float alpha)
           
 int getRule()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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:
createContext in interface java.awt.Composite

getAlpha

public float getAlpha()

getRule

public int getRule()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object