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) |
getScaleProvider
public 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.isMobileDevice
- is Mobile devicelogger
- the logger.scaleProviderHandler
- the scale provider handler.protected ScaleProvider getScaleProviderImpl(int imageToScaleWidth)
getScaleProviderImpl
in class ScaleProviderFactory
Copyright © 2020. All rights reserved.