Class Point
java.lang.Object
com.vaadin.featurepack.desktop.geometry.Point
- All Implemented Interfaces:
Serializable
A class that represents a point in 2D space.
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
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 coordinatey- 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
-
hashCode
public int hashCode() -
toString
-