Class OverlayFactory
java.lang.Object
is.galia.operation.overlay.OverlayFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewOverlay
(Delegate delegate) Factory method that returns a newOverlay
based on either the configuration, or the delegate method return value, depending on the setting ofKey.OVERLAY_STRATEGY
.boolean
shouldApplyToImage
(Size outputImageSize)
-
Constructor Details
-
OverlayFactory
public OverlayFactory()
-
-
Method Details
-
newOverlay
Factory method that returns a newOverlay
based on either the configuration, or the delegate method return value, depending on the setting ofKey.OVERLAY_STRATEGY
.- Parameters:
delegate
- Required whengetStrategy()
returnsOverlayFactory.Strategy.DELEGATE_METHOD
. May benull
otherwise.- Returns:
- Instance respecting the overlay strategy and given arguments.
- Throws:
Exception
-
shouldApplyToImage
- Parameters:
outputImageSize
-- Returns:
- Whether an overlay should be applied to an output image with the given dimensions.
-