Package org.openstreetmap.josm.gui.draw
Enum BlendComposite.Mode
- java.lang.Object
-
- java.lang.Enum<BlendComposite.Mode>
-
- org.openstreetmap.josm.gui.draw.BlendComposite.Mode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BlendComposite.Mode>
- Enclosing class:
- BlendComposite
public static enum BlendComposite.Mode extends java.lang.Enum<BlendComposite.Mode>
The supported blend modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BURNColor burn: darkens and increases contrast, white is neutralDIFFERENCEAbsolute difference between source and destination: always visible on any backgroundDIVIDEDivides destination by source: lightens, white is neutral, dark sources give bright linesHARD_LIGHTHard light: multiplies for dark sources, screens for light sources; strong contrastMULTIPLYMultiplies source and destination: darkens, white is neutralNORMALNormal alpha blending (likeAlphaComposite.SrcOver)
-
Constructor Summary
Constructors Modifier Constructor Description privateMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlendComposite.ModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BlendComposite.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final BlendComposite.Mode NORMAL
Normal alpha blending (likeAlphaComposite.SrcOver)
-
MULTIPLY
public static final BlendComposite.Mode MULTIPLY
Multiplies source and destination: darkens, white is neutral
-
BURN
public static final BlendComposite.Mode BURN
Color burn: darkens and increases contrast, white is neutral
-
HARD_LIGHT
public static final BlendComposite.Mode HARD_LIGHT
Hard light: multiplies for dark sources, screens for light sources; strong contrast
-
DIFFERENCE
public static final BlendComposite.Mode DIFFERENCE
Absolute difference between source and destination: always visible on any background
-
DIVIDE
public static final BlendComposite.Mode DIVIDE
Divides destination by source: lightens, white is neutral, dark sources give bright lines
-
-
Constructor Detail
-
Mode
private Mode()
-
-
Method Detail
-
values
public static BlendComposite.Mode[] 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.Mode c : BlendComposite.Mode.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.Mode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-