Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.geometry
Class Dimension

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

public class Dimension
extends Object
implements SeleniumRepresentable

Dimensions of object rendered by browser.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
Dimension(int width, int height)
          Creates new dimension with given width and height
 
Method Summary
 boolean equals(Object obj)
           
 int getHeight()
          Returns the height
 int getWidth()
          Returns the width
 int hashCode()
           
 String inSeleniumRepresentation()
          Returns Selenium's string representation of this object
 Offset toOffset()
          Converts dimension to offset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dimension

public Dimension(int width,
                 int height)
Creates new dimension with given width and height

Parameters:
width -
height -
Method Detail

getWidth

public int getWidth()
Returns the width

Returns:
the width

getHeight

public int getHeight()
Returns the height

Returns:
the height

toOffset

public Offset toOffset()
Converts dimension to offset

Returns:
the dimension converted to 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.