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

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

The newest version!
package com.applitools.eyes;

/**
 * Encapsulates state for {@link ScrollPositionProvider} instances.
 */
class ScrollPositionMemento extends PositionMemento {
    private final Location position;

    /**
     *
     * @param l The current location to be saved.
     */
    public ScrollPositionMemento(Location l) {
        position = new Location(l);
    }

    public int getX() {
        return position.getX();
    }

    public int getY() {
        return position.getY();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy