Class ContextBasedScaleProviderFactory


  • public class ContextBasedScaleProviderFactory
    extends com.applitools.eyes.ScaleProviderFactory
    Factory implementation for creating ContextBasedScaleProvider instances.
    • Field Summary

      • Fields inherited from class com.applitools.eyes.ScaleProviderFactory

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      ContextBasedScaleProviderFactory​(com.applitools.eyes.Logger logger, com.applitools.eyes.RectangleSize topLevelContextEntireSize, com.applitools.eyes.RectangleSize viewportSize, double devicePixelRatio, boolean isMobileDevice, com.applitools.utils.PropertyHandler<com.applitools.eyes.ScaleProvider> scaleProviderHandler)  
    • Constructor Detail

      • ContextBasedScaleProviderFactory

        public ContextBasedScaleProviderFactory​(com.applitools.eyes.Logger logger,
                                                com.applitools.eyes.RectangleSize topLevelContextEntireSize,
                                                com.applitools.eyes.RectangleSize viewportSize,
                                                double devicePixelRatio,
                                                boolean isMobileDevice,
                                                com.applitools.utils.PropertyHandler<com.applitools.eyes.ScaleProvider> scaleProviderHandler)
        Parameters:
        topLevelContextEntireSize - The total size of the top level context. E.g., for selenium this would be the document size of the top level frame.
        viewportSize - The viewport size.
        devicePixelRatio - The device pixel ratio of the platform on which the application is running.
        isMobileDevice - is Mobile device
        logger - the logger.
        scaleProviderHandler - the scale provider handler.
    • Method Detail

      • getScaleProviderImpl

        protected com.applitools.eyes.ScaleProvider getScaleProviderImpl​(int imageToScaleWidth)
        Specified by:
        getScaleProviderImpl in class com.applitools.eyes.ScaleProviderFactory