< prev index next >
core/JemmyCore/src/org/jemmy/Dimension.java
Print this page
*** 28,38 ****
import java.io.Serializable;
/**
* Replacement for java.awt.Dimension
! * @author Alexander Kouznetsov <mrkam@mail.ru>
*/
public class Dimension implements Serializable {
/**
* The width dimension; negative values can be used.
--- 28,38 ----
import java.io.Serializable;
/**
* Replacement for java.awt.Dimension
! * @author mrkam
*/
public class Dimension implements Serializable {
/**
* The width dimension; negative values can be used.
*** 102,120 ****
this.height = (int) Math.round(height);
}
/**
* {@inheritDoc}
- * @return
*/
public double getWidth() {
return width;
}
/**
* {@inheritDoc}
- * @return
*/
public double getHeight() {
return height;
}
--- 102,118 ----
*** 162,176 ****
public void setSize(int width, int height) {
this.width = width;
this.height = height;
}
- /**
- * Checks whether two dimension objects have equal values.
- * @param obj
- * @return
- */
@Override
public boolean equals(Object obj) {
if (obj instanceof Dimension) {
Dimension d = (Dimension)obj;
return (width == d.width) && (height == d.height);
--- 160,169 ----
< prev index next >