Package com.applitools.eyes
Class Location
java.lang.Object
com.applitools.eyes.Location
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ZERO
-
-
Constructor Details
-
Location
public Location() -
Location
public Location(int x, int y) Creates a Location instance.- Parameters:
x- The X coordinate of this location.y- The Y coordinate of this location.
-
Location
Creates a location from another location instance.- Parameters:
other- A location instance from which to create the location.
-
-
Method Details
-
equals
-
hashCode
-
offset
Get a location translated by the specified amount.- Parameters:
dx- The amount to offset the x-coordinate.dy- The amount to offset the y-coordinate.- Returns:
- A location translated by the specified amount.
-
offset
-
scale
Get a scaled location.- Parameters:
scaleRatio- The ratio by which to scale the results.- Returns:
- A scaled copy of the current location.
-
getX
public int getX()- Returns:
- The X coordinate of this location.
-
getY
public int getY()- Returns:
- The Y coordinate of this location.
-
toString
-
toStringForFilename
-