Package com.applitools.eyes.scaling
Class FixedScaleProviderFactory
java.lang.Object
com.applitools.eyes.ScaleProviderFactory
com.applitools.eyes.scaling.FixedScaleProviderFactory
Factory implementation for creating
FixedScaleProvider instances.-
Field Summary
Fields inherited from class com.applitools.eyes.ScaleProviderFactory
logger -
Constructor Summary
ConstructorsConstructorDescriptionFixedScaleProviderFactory(com.applitools.eyes.Logger logger, double scaleRatio, 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
-
FixedScaleProviderFactory
public FixedScaleProviderFactory(com.applitools.eyes.Logger logger, double scaleRatio, PropertyHandler<ScaleProvider> scaleProviderHandler) - Parameters:
scaleRatio- The ratio to scale by.
-
-
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.
-