public class Point extends Object implements SeleniumRepresentable
| Constructor and Description |
|---|
Point(int x,
int y)
Constructs new point with specified x and y positions
|
| Modifier and Type | Method and Description |
|---|---|
Point |
add(Offset offset)
Adds the given offset from this point
|
Point |
add(Point point)
Adds the given point from this point
|
boolean |
equals(Object obj) |
int |
getX()
Returns x position
|
int |
getY()
Returns y position
|
int |
hashCode() |
String |
inSeleniumRepresentation()
Returns Selenium's string representation of this object
|
Point |
substract(Offset offset)
Subtracts the given offset from this point
|
Point |
substract(Point point)
Subtracts the given point from this point
|
public Point(int x,
int y)
x - y - public int getX()
public int getY()
public Point substract(Point point)
point - to substractpublic Point add(Point point)
point - to addpublic Point substract(Offset offset)
offset - to subtractpublic Point add(Offset offset)
offset - to addpublic String inSeleniumRepresentation()
SeleniumRepresentableinSeleniumRepresentation in interface SeleniumRepresentableCopyright © 2013 JBoss by Red Hat. All Rights Reserved.