com.devsphere.mapping
Class PointBean

java.lang.Object
  |
  +--com.devsphere.mapping.PointBean
All Implemented Interfaces:
java.io.Serializable

public class PointBean
extends java.lang.Object
implements java.io.Serializable

Bean that groups the (X, Y) coordinates of 2D points.

See Also:
Serialized Form

Constructor Summary
PointBean()
          Creates a point bean.
PointBean(int x, int y)
          Creates a point bean.
 
Method Summary
 int getX()
          Gets the X coordinate.
 int getY()
          Gets the Y coordinate.
 void setX(int x)
          Sets the X coordinate.
 void setY(int y)
          Sets the Y coordinate.
 java.lang.String toString()
          Returns a string representation of this point containing its coordinates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PointBean

public PointBean()
Creates a point bean.

PointBean

public PointBean(int x,
                 int y)
Creates a point bean.
Parameters:
x - the X coordinate.
y - the Y coordinate.
Method Detail

setX

public void setX(int x)
Sets the X coordinate.
Parameters:
x - the X coordinate.

getX

public int getX()
Gets the X coordinate.
Returns:
the X coordinate.

setY

public void setY(int y)
Sets the Y coordinate.
Parameters:
y - the Y coordinate.

getY

public int getY()
Gets the Y coordinate.
Returns:
the Y coordinate.

toString

public java.lang.String toString()
Returns a string representation of this point containing its coordinates.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this point.