Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.geometry
Class Point

java.lang.Object
  extended by org.jboss.arquillian.ajocado.geometry.Point
All Implemented Interfaces:
SeleniumRepresentable

public class Point
extends Object
implements SeleniumRepresentable

Point as position rendered on browser canvas.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
Point(int x, int y)
          Constructs new point with specified x and y positions
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point(int x,
             int y)
Constructs new point with specified x and y positions

Parameters:
x -
y -
Method Detail

getX

public int getX()
Returns x position

Returns:
x position

getY

public int getY()
Returns y position

Returns:
y position

substract

public Point substract(Point point)
Subtracts the given point from this point

Parameters:
point - to substract
Returns:
the point with this point substract of given point

add

public Point add(Point point)
Adds the given point from this point

Parameters:
point - to add
Returns:
the point with this point add of given point

substract

public Point substract(Offset offset)
Subtracts the given offset from this point

Parameters:
offset - to subtract
Returns:
the point with this point subtract of given offset

add

public Point add(Offset offset)
Adds the given offset from this point

Parameters:
offset - to add
Returns:
the point with this point add of given offset

inSeleniumRepresentation

public String inSeleniumRepresentation()
Description copied from interface: SeleniumRepresentable
Returns Selenium's string representation of this object

Specified by:
inSeleniumRepresentation in interface SeleniumRepresentable
Returns:
Selenium's string representation of this object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Graphene Selenium: API 2.0.0.Alpha1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.