eu.webtoolkit.jwt
Class WPointF

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

public class WPointF
extends java.lang.Object

A value class that defines a 2D point.


Constructor Summary
WPointF()
          Creates point (0, 0).
WPointF(Coordinates other)
          Creates a point from mouse coordinates.
WPointF(double x, double y)
          Creates a point (x, y).
WPointF(WPointF other)
          Copy constructor.
 
Method Summary
 boolean equals(WPointF other)
          Indicates whether some other object is "equal to" this one.
 double getX()
          Returns the X coordinate.
 double getY()
          Returns the Y coordinate.
 void setX(double x)
          Sets the X coordinate.
 void setY(double 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

WPointF

public WPointF()
Creates point (0, 0).


WPointF

public WPointF(double x,
               double y)
Creates a point (x, y).


WPointF

public WPointF(WPointF other)
Copy constructor.


WPointF

public WPointF(Coordinates other)
Creates a point from mouse coordinates.

Method Detail

setX

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


setY

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


getX

public double getX()
Returns the X coordinate.


getY

public double getY()
Returns the Y coordinate.


equals

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