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 classBlendComposite.BlendingModeA list of all supported color blending operations.
-
Field Summary
Fields Modifier and Type Field Description static BlendCompositeCOLOR_BURN_COMPOSITEBlendCompositeobject that implements the opaque COLOR_BURN rule with an alpha of 1.0f.static BlendCompositeCOLOR_DODGE_COMPOSITEBlendCompositeobject that implements the opaque COLOR_DODGE rule with an alpha of 1.0f.static BlendCompositeDARKEN_COMPOSITEBlendCompositeobject that implements the opaque DARKEN rule with an alpha of 1.0f.static BlendCompositeDIFFERENCE_COMPOSITEBlendCompositeobject that implements the opaque DIFFERENCE rule with an alpha of 1.0f.static BlendCompositeEXCLUSION_COMPOSITEBlendCompositeobject that implements the opaque EXCLUSION rule with an alpha of 1.0f.static BlendCompositeHARD_LIGHT_COMPOSITEBlendCompositeobject that implements the opaque HARD_LIGHT rule with an alpha of 1.0f.static BlendCompositeLIGHTEN_COMPOSITEBlendCompositeobject that implements the opaque LIGHTEN rule with an alpha of 1.0f.static BlendCompositeMULTIPLY_COMPOSITEBlendCompositeobject that implements the opaque MULTIPLY rule with an alpha of 1.0f.static BlendCompositeOVERLAY_COMPOSITEBlendCompositeobject that implements the opaque OVERLAY rule with an alpha of 1.0f.static BlendCompositeSCREEN_COMPOSITEBlendCompositeobject that implements the opaque SCREEN rule with an alpha of 1.0f.static BlendCompositeSOFT_LIGHT_COMPOSITEBlendCompositeobject 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 CompositeContextcreateContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)floatgetAlpha()Returns the alpha value of thisBlendComposite.BlendComposite.BlendingModegetBlend()Returns the blend of thisBlendComposite.static CompositegeteInstance(BlendComposite.BlendingMode mode)static CompositegetInstance(BlendComposite.BlendingMode mode, float opacity)Returns a BlendComposite with the given mode and opacity.
-
-
-
Field Detail
-
MULTIPLY_COMPOSITE
public static final BlendComposite MULTIPLY_COMPOSITE
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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
BlendCompositeobject 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:
createContextin 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
-
-