Class ScaleProviderIdentityFactory


  • public class ScaleProviderIdentityFactory
    extends ScaleProviderFactory
    Factory implementation which simply returns the scale provider it is given as an argument.
    • Constructor Detail

      • ScaleProviderIdentityFactory

        public ScaleProviderIdentityFactory​(com.applitools.eyes.Logger logger,
                                            ScaleProvider scaleProvider,
                                            PropertyHandler<ScaleProvider> scaleProviderHandler)
        Parameters:
        logger - The logger to use.
        scaleProvider - The ScaleProvider
        scaleProviderHandler - The handler to set(get) the scale provider on(to).
    • Method Detail

      • getScaleProviderImpl

        protected ScaleProvider getScaleProviderImpl​(int imageToScaleWidth)
        Description copied from class: ScaleProviderFactory
        The implementation of getting/creating the scale provider, should be implemented by child classes.
        Specified by:
        getScaleProviderImpl in class ScaleProviderFactory
        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.