Package com.applitools.eyes.scaling
Class FixedScaleProviderFactory
- java.lang.Object
-
- com.applitools.eyes.ScaleProviderFactory
-
- com.applitools.eyes.scaling.FixedScaleProviderFactory
-
public class FixedScaleProviderFactory extends ScaleProviderFactory
Factory implementation for creatingFixedScaleProviderinstances.
-
-
Field Summary
-
Fields inherited from class com.applitools.eyes.ScaleProviderFactory
logger
-
-
Constructor Summary
Constructors Constructor Description FixedScaleProviderFactory(com.applitools.eyes.Logger logger, double scaleRatio, PropertyHandler<ScaleProvider> scaleProviderHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
FixedScaleProviderFactory
public FixedScaleProviderFactory(com.applitools.eyes.Logger logger, double scaleRatio, PropertyHandler<ScaleProvider> scaleProviderHandler)- Parameters:
scaleRatio- The ratio to scale by.
-
-
Method Detail
-
getScaleProviderImpl
protected ScaleProvider getScaleProviderImpl(int imageToScaleWidth)
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.
-
-