Class BlendingComposite
java.lang.Object
com.macrofocus.high_d.parallelcoordinates.blending.BlendingComposite
- All Implemented Interfaces:
Composite
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) booleanstatic BlendingCompositegetInstance(BlendingMode mode) Creates a new composite based on the blending mode passed as a parameter.static BlendingCompositegetInstance(BlendingMode mode, float alpha) Creates a new composite based on the blending mode and opacity passed as parameters.
-
Method Details
-
getInstance
Creates a new composite based on the blending mode passed as a parameter. A default opacity of 1.0 is applied.
- Parameters:
mode- the blending mode defining the compositing rule- Returns:
- a new
BlendCompositebased on the selected blending mode, with an opacity of 1.0
-
getInstance
Creates a new composite based on the blending mode and opacity passed as parameters. The opacity must be a value between 0.0 and 1.0.
- Parameters:
mode- the blending mode defining the compositing rulealpha- the constant alpha to be multiplied with the alpha of the source.alphamust be a floating point between 0.0 and 1.0.- Returns:
- a new
BlendCompositebased on the selected blending mode and opacity - Throws:
IllegalArgumentException- if the opacity is less than 0.0 or greater than 1.0
-
equals
-
createContext
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) - Specified by:
createContextin interfaceComposite
-