com.extjs.gxt.ui.client.util
Class Point

java.lang.Object
  extended by com.extjs.gxt.ui.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

Field Summary
 int x
          The x coordinate of the point
 int y
          The y coordinate of the point
 
Constructor Summary
Point(int x, int y)
          Constructs a new point with the given x and y coordinates.
 
Method Summary
static Point newInstance(double x, double y)
           
static Point newInstance(int x, int y)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x
The x coordinate of the point


y

public int y
The y coordinate of the point

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

newInstance

public static Point newInstance(double x,
                                double y)

newInstance

public static Point newInstance(int x,
                                int y)

toString

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