eu.webtoolkit.jwt
Class WPoint

java.lang.Object
  extended by eu.webtoolkit.jwt.WPoint

public class WPoint
extends java.lang.Object

A value class that defines a 2D point with integer coordinates.

See Also:
WPolygonArea

Constructor Summary
WPoint()
          Creates a point (0, 0).
WPoint(int x, int y)
          Creates a point (x, y).
 
Method Summary
 boolean equals(WPoint other)
          Indicates whether some other object is "equal to" this one.
 int getX()
          Returns the X coordinate.
 int getY()
          Returns the Y coordinate.
 void setX(int x)
          Sets the X coordinate.
 void setY(int y)
          Sets the Y coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WPoint

public WPoint()
Creates a point (0, 0).


WPoint

public WPoint(int x,
              int y)
Creates a point (x, y).

Method Detail

setX

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


setY

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


getX

public int getX()
Returns the X coordinate.


getY

public int getY()
Returns the Y coordinate.


equals

public boolean equals(WPoint other)
Indicates whether some other object is "equal to" this one.