Class WPoint

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

public class WPoint extends Object
A value class that defines a 2D point with integer coordinates.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a point (0, 0).
    WPoint(int x, int y)
    Creates a point (x, y).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(WPoint other)
    Indicates whether some other object is "equal to" this one.
    int
    Returns the X coordinate.
    int
    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 Details

    • WPoint

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

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

    • 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.