Class ScaleProviderFactory

    • Field Detail

      • logger

        protected com.applitools.eyes.Logger logger
    • Constructor Detail

      • ScaleProviderFactory

        public ScaleProviderFactory​(com.applitools.eyes.Logger logger,
                                    PropertyHandler<ScaleProvider> scaleProviderHandler)
        Parameters:
        logger - The logger to use.
        scaleProviderHandler - A handler to update once a ScaleProvider instance is created.
    • Method Detail

      • getScaleProvider

        public ScaleProvider getScaleProvider​(int imageToScaleWidth)
        The main API for this factory.
        Parameters:
        imageToScaleWidth - The width of the image to scale. This parameter CAN be by class implementing the factory, but this is not mandatory.
        Returns:
        A ScaleProvider instance.
      • getScaleProviderImpl

        protected abstract ScaleProvider getScaleProviderImpl​(int imageToScaleWidth)
        The implementation of getting/creating the scale provider, should be implemented by child classes.
        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.