Package org.geotools.renderer.composite
Class BlendComposite
- Object
-
- BlendComposite
-
- All Implemented Interfaces:
Composite
public class BlendComposite extends Object implements Composite
Java2D Composite implementation of SVG color blending primitives- Author:
- Andrea Aime - GeoSolutions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlendComposite.BlendingMode
A list of all supported color blending operations.
-
Field Summary
Fields Modifier and Type Field Description static BlendComposite
COLOR_BURN_COMPOSITE
BlendComposite
object that implements the opaque COLOR_BURN rule with an alpha of 1.0f.static BlendComposite
COLOR_DODGE_COMPOSITE
BlendComposite
object that implements the opaque COLOR_DODGE rule with an alpha of 1.0f.static BlendComposite
DARKEN_COMPOSITE
BlendComposite
object that implements the opaque DARKEN rule with an alpha of 1.0f.static BlendComposite
DIFFERENCE_COMPOSITE
BlendComposite
object that implements the opaque DIFFERENCE rule with an alpha of 1.0f.static BlendComposite
EXCLUSION_COMPOSITE
BlendComposite
object that implements the opaque EXCLUSION rule with an alpha of 1.0f.static BlendComposite
HARD_LIGHT_COMPOSITE
BlendComposite
object that implements the opaque HARD_LIGHT rule with an alpha of 1.0f.static BlendComposite
LIGHTEN_COMPOSITE
BlendComposite
object that implements the opaque LIGHTEN rule with an alpha of 1.0f.static BlendComposite
MULTIPLY_COMPOSITE
BlendComposite
object that implements the opaque MULTIPLY rule with an alpha of 1.0f.static BlendComposite
OVERLAY_COMPOSITE
BlendComposite
object that implements the opaque OVERLAY rule with an alpha of 1.0f.static BlendComposite
SCREEN_COMPOSITE
BlendComposite
object that implements the opaque SCREEN rule with an alpha of 1.0f.static BlendComposite
SOFT_LIGHT_COMPOSITE
BlendComposite
object that implements the opaque SOFT_LIGHT rule with an alpha of 1.0f.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeContext
createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
float
getAlpha()
Returns the alpha value of thisBlendComposite
.BlendComposite.BlendingMode
getBlend()
Returns the blend of thisBlendComposite
.static Composite
geteInstance(BlendComposite.BlendingMode mode)
static Composite
getInstance(BlendComposite.BlendingMode mode, float opacity)
Returns a BlendComposite with the given mode and opacity.
-
-
-
Field Detail
-
MULTIPLY_COMPOSITE
public static final BlendComposite MULTIPLY_COMPOSITE
BlendComposite
object that implements the opaque MULTIPLY rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.MULTIPLY
-
SCREEN_COMPOSITE
public static final BlendComposite SCREEN_COMPOSITE
BlendComposite
object that implements the opaque SCREEN rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.SCREEN
-
OVERLAY_COMPOSITE
public static final BlendComposite OVERLAY_COMPOSITE
BlendComposite
object that implements the opaque OVERLAY rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.OVERLAY
-
DARKEN_COMPOSITE
public static final BlendComposite DARKEN_COMPOSITE
BlendComposite
object that implements the opaque DARKEN rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.DARKEN
-
LIGHTEN_COMPOSITE
public static final BlendComposite LIGHTEN_COMPOSITE
BlendComposite
object that implements the opaque LIGHTEN rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.LIGHTEN
-
COLOR_DODGE_COMPOSITE
public static final BlendComposite COLOR_DODGE_COMPOSITE
BlendComposite
object that implements the opaque COLOR_DODGE rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.COLOR_DODGE
-
COLOR_BURN_COMPOSITE
public static final BlendComposite COLOR_BURN_COMPOSITE
BlendComposite
object that implements the opaque COLOR_BURN rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.COLOR_BURN
-
HARD_LIGHT_COMPOSITE
public static final BlendComposite HARD_LIGHT_COMPOSITE
BlendComposite
object that implements the opaque HARD_LIGHT rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.HARD_LIGHT
-
SOFT_LIGHT_COMPOSITE
public static final BlendComposite SOFT_LIGHT_COMPOSITE
BlendComposite
object that implements the opaque SOFT_LIGHT rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.SOFT_LIGHT
-
DIFFERENCE_COMPOSITE
public static final BlendComposite DIFFERENCE_COMPOSITE
BlendComposite
object that implements the opaque DIFFERENCE rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.DIFFERENCE
-
EXCLUSION_COMPOSITE
public static final BlendComposite EXCLUSION_COMPOSITE
BlendComposite
object that implements the opaque EXCLUSION rule with an alpha of 1.0f.- See Also:
BlendComposite.BlendingMode.EXCLUSION
-
-
Method Detail
-
createContext
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
- Specified by:
createContext
in interfaceComposite
-
getAlpha
public float getAlpha()
Returns the alpha value of thisBlendComposite
.- Returns:
- the alpha value of this
BlendComposite
.
-
getBlend
public BlendComposite.BlendingMode getBlend()
Returns the blend of thisBlendComposite
.- Returns:
- the blend of this
BlendComposite
.
-
geteInstance
public static Composite geteInstance(BlendComposite.BlendingMode mode)
-
getInstance
public static Composite getInstance(BlendComposite.BlendingMode mode, float opacity)
Returns a BlendComposite with the given mode and opacity. If opacity is 1.0 one of the public constant BlendComposite fields will be returned, incurring in no instantiation cost
-
-