com.ibm.wbi.http.beans.imagemap
Class Point

java.lang.Object
  |
  +--com.ibm.wbi.http.beans.imagemap.Point

public final class Point
extends java.lang.Object
implements java.lang.Cloneable

Represents a point (x,y) for use with image maps.


Constructor Summary
Point()
          Creates a new point.
Point(int xPos, int yPos)
          Creates a new point given an x and y coordinate.
 
Method Summary
 java.lang.Object clone()
          Returns a copy of the current object.
 int getX()
          Returns the current x coordinate.
 int getY()
          Returns the current y coordinate.
 void setX(int pos)
          Sets the current x coordinate.
 void setXY(int xPos, int yPos)
          Sets the current x and y coordinates.
 void setY(int pos)
          Sets the current y coordinate.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point(int xPos,
             int yPos)
Creates a new point given an x and y coordinate.
Parameters:
xPos - x coordinate
yPos - y coordinate

Point

public Point()
Creates a new point. x = y = 0
Method Detail

setX

public void setX(int pos)
Sets the current x coordinate.
Parameters:
pos - new x coordinate

setY

public void setY(int pos)
Sets the current y coordinate.
Parameters:
pos - new y coordinate

setXY

public void setXY(int xPos,
                  int yPos)
Sets the current x and y coordinates.
Parameters:
xPos - new x coordinate
yPos - new y coordinate

getX

public int getX()
Returns the current x coordinate.
Returns:
current x coordinate

getY

public int getY()
Returns the current y coordinate.
Returns:
current y coordinate

clone

public java.lang.Object clone()
Returns a copy of the current object.
Returns:
clone of the current object
Overrides:
clone in class java.lang.Object