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

com.applitools.eyes.positioning.RegionProvider Maven / Gradle / Ivy

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

import com.applitools.eyes.Region;
import com.applitools.eyes.fluent.ICheckSettingsInternal;

/**
 * Encapsulates a getRegion "callback" and how the region's coordinates should be used.
 */
public class RegionProvider {

    /**
     * @return A region with "as is" viewport coordinates.
     */
    public Region getRegion(ICheckSettingsInternal settings) {
        return getRegion();
    }

    public Region getRegion() {return Region.EMPTY; }

    public static final RegionProvider NULL_INSTANCE = new RegionProvider();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy