public abstract class ScaleProviderFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.applitools.eyes.Logger |
logger |
| Constructor and Description |
|---|
ScaleProviderFactory(com.applitools.eyes.Logger logger,
PropertyHandler<ScaleProvider> scaleProviderHandler) |
| Modifier and Type | Method and Description |
|---|---|
ScaleProvider |
getScaleProvider(int imageToScaleWidth)
The main API for this factory.
|
protected abstract ScaleProvider |
getScaleProviderImpl(int imageToScaleWidth)
The implementation of getting/creating the scale provider, should be implemented by child classes.
|
public ScaleProviderFactory(com.applitools.eyes.Logger logger,
PropertyHandler<ScaleProvider> scaleProviderHandler)
logger - The logger to use.scaleProviderHandler - A handler to update once a ScaleProvider instance is created.public ScaleProvider getScaleProvider(int imageToScaleWidth)
imageToScaleWidth - The width of the image to scale. This parameter CAN be by class implementing
the factory, but this is not mandatory.ScaleProvider instance.protected abstract ScaleProvider getScaleProviderImpl(int imageToScaleWidth)
imageToScaleWidth - The width of the image to scale. This parameter CAN be by class implementing
the factory, but this is not mandatory.Copyright © 2023. All rights reserved.