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

com.applitools.eyes.selenium.positioning.CssTranslatePositionMemento Maven / Gradle / Ivy

The newest version!
package com.applitools.eyes.selenium.positioning;

import com.applitools.eyes.Location;
import com.applitools.eyes.positioning.PositionMemento;

import java.util.Map;

/**
 * Encapsulates state for {@link CssTranslatePositionProvider} instances.
 */
public class CssTranslatePositionMemento extends PositionMemento {
    private final Map transforms;
    private final Location position;

    /**
     *
     * @param transforms The current transforms. The keys are the style keys
     *                   from which each of the transforms were taken.
     */
    public CssTranslatePositionMemento(Map transforms, Location position) {
        this.transforms = transforms;
        this.position = position;
    }

    /**
     *
     * @return The current transforms. The keys are the style keys from
     * which each of the transforms were taken.
     */
    public Map getTransform() {
        return transforms;
    }

    public Location getPosition() { return position; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy