public abstract class ScaleProviderFactory extends Object
| Constructor and Description |
|---|
ScaleProviderFactory(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.
|
protected Logger logger
public ScaleProviderFactory(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 © 2022. All rights reserved.