public class ContextBasedScaleProviderFactory extends ScaleProviderFactory
ContextBasedScaleProvider
instances.Constructor and Description |
---|
ContextBasedScaleProviderFactory(RectangleSize topLevelContextEntireSize,
RectangleSize viewportSize,
double devicePixelRatio,
PropertyHandler<ScaleProvider> scaleProviderHandler) |
Modifier and Type | Method and Description |
---|---|
protected ScaleProvider |
getScaleProviderImpl(int imageToScaleWidth) |
getScaleProvider
public ContextBasedScaleProviderFactory(RectangleSize topLevelContextEntireSize, RectangleSize viewportSize, double devicePixelRatio, 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 ScaleProviderFactory
Copyright © 2017. All rights reserved.