java.lang.Object
com.vaadin.featurepack.desktop.geometry.Point
All Implemented Interfaces:
Serializable

public class Point extends Object implements Serializable
A class that represents a point in 2D space.
Author:
Vaadin Ltd
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new point at (0, 0).
    Point(int x, int y)
    Creates a new point with the given coordinates.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns the x coordinate of this point.
    int
    Returns the y coordinate of this point.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Point

      public Point()
      Creates a new point at (0, 0).
    • Point

      public Point(int x, int y)
      Creates a new point with the given coordinates.
      Parameters:
      x - the x coordinate
      y - the y coordinate
  • Method Details

    • getX

      public int getX()
      Returns the x coordinate of this point.
      Returns:
      the x coordinate
    • getY

      public int getY()
      Returns the y coordinate of this point.
      Returns:
      the y coordinate
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object