public abstract class ScaleProviderFactory extends Object
| Constructor and Description |
|---|
ScaleProviderFactory(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(PropertyHandler<ScaleProvider> scaleProviderHandler)
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 © 2017. All rights reserved.