Package org.geotools.renderer.composite
Enum BlendComposite.BlendingMode
- Object
-
- Enum<BlendComposite.BlendingMode>
-
- BlendingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<BlendComposite.BlendingMode>
- Enclosing class:
- BlendComposite
public static enum BlendComposite.BlendingMode extends Enum<BlendComposite.BlendingMode>
A list of all supported color blending operations. Each operation is implemented according to the SVG compositing primer.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLOR_BURN
COLOR_DODGE
DARKEN
DIFFERENCE
EXCLUSION
HARD_LIGHT
LIGHTEN
MULTIPLY
OVERLAY
SCREEN
SOFT_LIGHT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getName()
static List<String>
getStandardNames()
Returns the list of blending modes standard namesstatic BlendComposite.BlendingMode
lookupByName(String name)
Looks up a blending mode by its SVG standard name (as opposed to the enum name, which for example cannot contain hyphens)abstract void
perform(int sr, int sg, int sb, int sa, int dr, int dg, int db, int da, int[] result)
Performs the color blending on the given pixels, assuming the source colors are pre-multipliedstatic BlendComposite.BlendingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static BlendComposite.BlendingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MULTIPLY
public static final BlendComposite.BlendingMode MULTIPLY
-
SCREEN
public static final BlendComposite.BlendingMode SCREEN
-
OVERLAY
public static final BlendComposite.BlendingMode OVERLAY
-
DARKEN
public static final BlendComposite.BlendingMode DARKEN
-
LIGHTEN
public static final BlendComposite.BlendingMode LIGHTEN
-
COLOR_DODGE
public static final BlendComposite.BlendingMode COLOR_DODGE
-
COLOR_BURN
public static final BlendComposite.BlendingMode COLOR_BURN
-
HARD_LIGHT
public static final BlendComposite.BlendingMode HARD_LIGHT
-
SOFT_LIGHT
public static final BlendComposite.BlendingMode SOFT_LIGHT
-
DIFFERENCE
public static final BlendComposite.BlendingMode DIFFERENCE
-
EXCLUSION
public static final BlendComposite.BlendingMode EXCLUSION
-
-
Method Detail
-
values
public static BlendComposite.BlendingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BlendComposite.BlendingMode c : BlendComposite.BlendingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlendComposite.BlendingMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
perform
public abstract void perform(int sr, int sg, int sb, int sa, int dr, int dg, int db, int da, int[] result)
Performs the color blending on the given pixels, assuming the source colors are pre-multiplied
-
getName
public String getName()
-
lookupByName
public static BlendComposite.BlendingMode lookupByName(String name)
Looks up a blending mode by its SVG standard name (as opposed to the enum name, which for example cannot contain hyphens)- Parameters:
name
- The standard name- Returns:
- The corresponding blending mode, or null if not found
-
-