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 enumA list of all supported color blending operations. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlendCompositeBlendCompositeobject that implements the opaque COLOR_BURN rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque COLOR_DODGE rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque DARKEN rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque DIFFERENCE rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque EXCLUSION rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque HARD_LIGHT rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque LIGHTEN rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque MULTIPLY rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque OVERLAY rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque SCREEN rule with an alpha of 1.0f.static final BlendCompositeBlendCompositeobject that implements the opaque SOFT_LIGHT rule with an alpha of 1.0f. -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) floatgetAlpha()Returns the alpha value of thisBlendComposite.getBlend()Returns the blend of thisBlendComposite.static Compositestatic CompositegetInstance(BlendComposite.BlendingMode mode, float opacity) Returns a BlendComposite with the given mode and opacity.
-
Field Details
-
MULTIPLY_COMPOSITE
BlendCompositeobject that implements the opaque MULTIPLY rule with an alpha of 1.0f.- See Also:
-
SCREEN_COMPOSITE
BlendCompositeobject that implements the opaque SCREEN rule with an alpha of 1.0f.- See Also:
-
OVERLAY_COMPOSITE
BlendCompositeobject that implements the opaque OVERLAY rule with an alpha of 1.0f.- See Also:
-
DARKEN_COMPOSITE
BlendCompositeobject that implements the opaque DARKEN rule with an alpha of 1.0f.- See Also:
-
LIGHTEN_COMPOSITE
BlendCompositeobject that implements the opaque LIGHTEN rule with an alpha of 1.0f.- See Also:
-
COLOR_DODGE_COMPOSITE
BlendCompositeobject that implements the opaque COLOR_DODGE rule with an alpha of 1.0f.- See Also:
-
COLOR_BURN_COMPOSITE
BlendCompositeobject that implements the opaque COLOR_BURN rule with an alpha of 1.0f.- See Also:
-
HARD_LIGHT_COMPOSITE
BlendCompositeobject that implements the opaque HARD_LIGHT rule with an alpha of 1.0f.- See Also:
-
SOFT_LIGHT_COMPOSITE
BlendCompositeobject that implements the opaque SOFT_LIGHT rule with an alpha of 1.0f.- See Also:
-
DIFFERENCE_COMPOSITE
BlendCompositeobject that implements the opaque DIFFERENCE rule with an alpha of 1.0f.- See Also:
-
EXCLUSION_COMPOSITE
BlendCompositeobject 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:
createContextin 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
-