Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.geometry
Class Offset

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

public class Offset
extends Object
implements SeleniumRepresentable

Offset for movement on browser-rendered canvas.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
Offset(int x, int y)
          Creates the offset with specified x and y movements
 
Method Summary
 boolean equals(Object obj)
           
 int getX()
          Returns the x movement
 int getY()
          Returns the y movement
 int hashCode()
           
 String inSeleniumRepresentation()
          Returns Selenium's string representation of this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Offset

public Offset(int x,
              int y)
Creates the offset with specified x and y movements

Parameters:
x - the x movement
y - the y movement
Method Detail

getX

public int getX()
Returns the x movement

Returns:
the x movement

getY

public int getY()
Returns the y movement

Returns:
the y movement

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.