Package org.geotools.renderer.composite
Class BlendComposite
Object
BlendComposite
- All Implemented Interfaces:
Composite
Java2D Composite implementation of SVG color blending
primitives
- Author:
- Andrea Aime - GeoSolutions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
A list of all supported color blending operations. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlendComposite
BlendComposite
object that implements the opaque COLOR_BURN rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque COLOR_DODGE rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque DARKEN rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque DIFFERENCE rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque EXCLUSION rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque HARD_LIGHT rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque LIGHTEN rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque MULTIPLY rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque OVERLAY rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque SCREEN rule with an alpha of 1.0f.static final BlendComposite
BlendComposite
object that implements the opaque SOFT_LIGHT rule with an alpha of 1.0f. -
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) float
getAlpha()
Returns the alpha value of thisBlendComposite
.getBlend()
Returns the blend of thisBlendComposite
.static Composite
static Composite
getInstance
(BlendComposite.BlendingMode mode, float opacity) Returns a BlendComposite with the given mode and opacity.
-
Field Details
-
MULTIPLY_COMPOSITE
BlendComposite
object that implements the opaque MULTIPLY rule with an alpha of 1.0f.- See Also:
-
SCREEN_COMPOSITE
BlendComposite
object that implements the opaque SCREEN rule with an alpha of 1.0f.- See Also:
-
OVERLAY_COMPOSITE
BlendComposite
object that implements the opaque OVERLAY rule with an alpha of 1.0f.- See Also:
-
DARKEN_COMPOSITE
BlendComposite
object that implements the opaque DARKEN rule with an alpha of 1.0f.- See Also:
-
LIGHTEN_COMPOSITE
BlendComposite
object that implements the opaque LIGHTEN rule with an alpha of 1.0f.- See Also:
-
COLOR_DODGE_COMPOSITE
BlendComposite
object that implements the opaque COLOR_DODGE rule with an alpha of 1.0f.- See Also:
-
COLOR_BURN_COMPOSITE
BlendComposite
object that implements the opaque COLOR_BURN rule with an alpha of 1.0f.- See Also:
-
HARD_LIGHT_COMPOSITE
BlendComposite
object that implements the opaque HARD_LIGHT rule with an alpha of 1.0f.- See Also:
-
SOFT_LIGHT_COMPOSITE
BlendComposite
object that implements the opaque SOFT_LIGHT rule with an alpha of 1.0f.- See Also:
-
DIFFERENCE_COMPOSITE
BlendComposite
object that implements the opaque DIFFERENCE rule with an alpha of 1.0f.- See Also:
-
EXCLUSION_COMPOSITE
BlendComposite
object that implements the opaque EXCLUSION rule with an alpha of 1.0f.- See Also:
-
-
Method Details
-
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
Returns the blend of thisBlendComposite
.- Returns:
- the blend of this
BlendComposite
.
-
geteInstance
-
getInstance
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
-