Package org.openqa.selenium
Class DeviceRotation
- java.lang.Object
-
- org.openqa.selenium.DeviceRotation
-
public class DeviceRotation extends java.lang.Object
Defines an object which represents the three dimensional plane and how a device can be rotated about it. Each of the axes is in positive degrees on the real number scale (0 <= deg <= 360).Example instantiation to rotate device to "Landscape Right": DeviceRotation(0, 0, 90);
-
-
Constructor Summary
Constructors Constructor Description DeviceRotation(int x, int y, int z)
Instantiate a DeviceRotation object based on three integers.DeviceRotation(java.util.Map<java.lang.String,java.lang.Number> map)
Instantiate a DeviceRotation object based on a HashMap object where the keys are the axes x, y, and z respectively: x : xVal y : yVal z : zVal
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getX()
int
getY()
int
getZ()
int
hashCode()
java.util.Map<java.lang.String,java.lang.Integer>
parameters()
-
-
-
Constructor Detail
-
DeviceRotation
public DeviceRotation(int x, int y, int z)
Instantiate a DeviceRotation object based on three integers.
-
DeviceRotation
public DeviceRotation(java.util.Map<java.lang.String,java.lang.Number> map)
Instantiate a DeviceRotation object based on a HashMap object where the keys are the axes x, y, and z respectively: x : xVal y : yVal z : zVal
-
-
Method Detail
-
getX
public int getX()
- Returns:
- The x.
-
getY
public int getY()
- Returns:
- The y.
-
getZ
public int getZ()
- Returns:
- The z.
-
parameters
public java.util.Map<java.lang.String,java.lang.Integer> parameters()
- Returns:
- All axes mapped to a Map.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-