Package com.applitools.eyes
Class ScaleProviderIdentityFactory
java.lang.Object
com.applitools.eyes.ScaleProviderFactory
com.applitools.eyes.ScaleProviderIdentityFactory
Factory implementation which simply returns the scale provider it is given as an argument.
-
Field Summary
Fields inherited from class com.applitools.eyes.ScaleProviderFactory
logger -
Constructor Summary
ConstructorsConstructorDescriptionScaleProviderIdentityFactory(com.applitools.eyes.Logger logger, ScaleProvider scaleProvider, PropertyHandler<ScaleProvider> scaleProviderHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected ScaleProvidergetScaleProviderImpl(int imageToScaleWidth) The implementation of getting/creating the scale provider, should be implemented by child classes.Methods inherited from class com.applitools.eyes.ScaleProviderFactory
getScaleProvider
-
Constructor Details
-
ScaleProviderIdentityFactory
public ScaleProviderIdentityFactory(com.applitools.eyes.Logger logger, ScaleProvider scaleProvider, PropertyHandler<ScaleProvider> scaleProviderHandler) - Parameters:
logger- The logger to use.scaleProvider- TheScaleProviderscaleProviderHandler- The handler to set(get) the scale provider on(to).
-
-
Method Details
-
getScaleProviderImpl
Description copied from class:ScaleProviderFactoryThe implementation of getting/creating the scale provider, should be implemented by child classes.- Specified by:
getScaleProviderImplin classScaleProviderFactory- Parameters:
imageToScaleWidth- The width of the image to scale. This parameter CAN be by class implementing the factory, but this is not mandatory.- Returns:
- The scale provider to be used.
-