All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.FixedScaleProvider Maven / Gradle / Ivy

There is a newer version: 3.11
Show newest version
package com.applitools.eyes;

import com.applitools.utils.ArgumentGuard;

/**
 * Scale provider based on a fixed scale ratio.
 */
public class FixedScaleProvider implements ScaleProvider {

    private final double scaleRatio;

    /**
     *
     * @param scaleRatio The scale ratio to use.
     */
    public FixedScaleProvider(double scaleRatio) {
        ArgumentGuard.greaterThanZero(scaleRatio, "scaleRatio");
        this.scaleRatio = scaleRatio;
    }

    /**
     *
     * {@inheritDoc}
     */
    public double getScaleRatio() {
        return scaleRatio;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy