< prev index next >

core/JemmyCore/src/org/jemmy/Point.java

Print this page

        

@@ -29,11 +29,11 @@
 import java.io.Serializable;
 
 
 /**
  * Replacement for java.awt.Point
- * @author Alexander Kouznetsov <mrkam@mail.ru>
+ * @author mrkam
  */
 public class Point implements Serializable{
     /**
      * The X coordinate of this <code>Point</code>.
      * If no X coordinate is set it will default to 0.

@@ -99,19 +99,17 @@
         this.y = (int) Math.round(y);
     }
 
     /**
      * {@inheritDoc}
-     * @return
      */
     public int getX() {
         return x;
     }
 
     /**
      * {@inheritDoc}
-     * @return
      */
     public int getY() {
         return y;
     }
 

@@ -126,11 +124,11 @@
     }
 
     /**
      * Sets the location of the point to the specified location.
      * @param       p  a point, the new location for this point
-     * @return
+     * @return      self
      * @see         org.jemmy.Point#getLocation
      */
     public Point setLocation(Point p) {
         setLocation(p.x, p.y);
         return this;

@@ -201,12 +199,13 @@
         this.y += dy;
         return this;
     }
 
     /**
+     * Translates the current point according to the given vector.
      *
-     * @param v
+     * @param v vector by which to translate the point 
      * @return self
      */
     public Point translate(Vector v) {
         this.x = (int) Math.round(x + v.getX());
         this.y = (int) Math.round(y + v.getY());

@@ -231,11 +230,10 @@
         return super.equals(obj);
     }
 
     /**
      * {@inheritDoc}
-     * @return
      */
     @Override
     public int hashCode() {
         int hash = 7;
         hash = 89 * hash + this.x;
< prev index next >