public class ContextBasedScaleProviderFactory extends ScaleProviderFactory
ContextBasedScaleProvider instances.logger| Constructor and Description |
|---|
ContextBasedScaleProviderFactory(Logger logger,
RectangleSize topLevelContextEntireSize,
RectangleSize viewportSize,
double devicePixelRatio,
boolean isMobileDevice,
PropertyHandler<ScaleProvider> scaleProviderHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected ScaleProvider |
getScaleProviderImpl(int imageToScaleWidth) |
getScaleProviderpublic ContextBasedScaleProviderFactory(Logger logger, RectangleSize topLevelContextEntireSize, RectangleSize viewportSize, double devicePixelRatio, boolean isMobileDevice, PropertyHandler<ScaleProvider> scaleProviderHandler)
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.protected ScaleProvider getScaleProviderImpl(int imageToScaleWidth)
getScaleProviderImpl in class ScaleProviderFactoryCopyright © 2019. All rights reserved.