diff options
Diffstat (limited to 'docs/dist/doc/examples/bean/Point.java')
-rw-r--r-- | docs/dist/doc/examples/bean/Point.java | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/docs/dist/doc/examples/bean/Point.java b/docs/dist/doc/examples/bean/Point.java index d5040c2bf..a6ea703cd 100644 --- a/docs/dist/doc/examples/bean/Point.java +++ b/docs/dist/doc/examples/bean/Point.java @@ -1,5 +1,4 @@ /* - Copyright (c) Xerox Corporation 1998-2002. All rights reserved. Use and copying of this software and preparation of derivative works based @@ -9,7 +8,6 @@ laws. This software is made available AS IS, and Xerox Corporation makes no warranty about the software, its performance or its conformity to any specification. - */ package bean; @@ -23,54 +21,49 @@ class Point { * Return the X coordinate */ public int getX(){ - return x; + return x; } /** * Return the y coordinate */ public int getY(){ - return y; + return y; } /** * Set the x and y coordinates */ public void setRectangular(int newX, int newY){ - setX(newX); - setY(newY); + setX(newX); + setY(newY); } /** * Set the X coordinate */ public void setX(int newX) { - x = newX; + x = newX; } /** * set the y coordinate */ public void setY(int newY) { - y = newY; + y = newY; } - /** * Move the point by the specified x and y offset */ public void offset(int deltaX, int deltaY){ - setRectangular(x + deltaX, y + deltaY); + setRectangular(x + deltaX, y + deltaY); } - /** - * MAke a string of this + * Make a string of this */ public String toString(){ - return "(" + getX() + ", " + getY() + ")" ; + return "(" + getX() + ", " + getY() + ")" ; } - - - } |