java.lang.Object
io.github.mmm.ui.api.datatype.UiPoint
- All Implemented Interfaces:
AttributeReadPosition
A 2-D point.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UiPoint
public UiPoint(double x, double y) The constructor.- Parameters:
x
- thex coordinate
.y
- they coordinate
.
-
-
Method Details
-
getX
public double getX()- Specified by:
getX
in interfaceAttributeReadPosition
- Returns:
- the x position of this object as the number of pixels from the left on the x-axis (horizontally).
-
getY
public double getY()- Specified by:
getY
in interfaceAttributeReadPosition
- Returns:
- the y position of this object as the number of pixels from the top on the y-axis (vertically).
-
toString
-