com.sencha.gxt.core.client.util
Class Point

java.lang.Object
  extended by com.sencha.gxt.core.client.util.Point

public class Point
extends java.lang.Object

Instances of this class represent places on the (x, y) coordinate plane.

See Also:
Rectangle

Constructor Summary
Point(int x, int y)
          Constructs a new point with the given x and y coordinates.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getX()
          Returns the x coordinate of the point.
 int getY()
          Returns the y coordinate of the point.
 int hashCode()
           
 void setX(int x)
          Sets the x-coordinate.
 void setY(int y)
          Sets the y-coordinate
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(int x,
             int y)
Constructs a new point with the given x and y coordinates.

Parameters:
x - the x coordinate of the new point
y - the y coordinate of the new point
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getX

public int getX()
Returns the x coordinate of the point.

Returns:
the x coordinate

getY

public int getY()
Returns the y coordinate of the point.

Returns:
the y coordinate

setX

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

Parameters:
x - the x-coordinate

setY

public void setY(int y)
Sets the y-coordinate

Parameters:
y - the y-coordinate

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012. All Rights Reserved.