java.lang.Object
io.github.mmm.ui.api.datatype.UiPoint
All Implemented Interfaces:
AttributeReadPosition

public final class UiPoint extends Object implements AttributeReadPosition
A 2-D point.
Since:
1.0.0
  • Constructor Details

    • UiPoint

      public UiPoint(double x, double y)
      The constructor.
      Parameters:
      x - the x coordinate.
      y - the y coordinate.
  • Method Details

    • getX

      public double getX()
      Specified by:
      getX in interface AttributeReadPosition
      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 interface AttributeReadPosition
      Returns:
      the y position of this object as the number of pixels from the top on the y-axis (vertically).
    • toString

      public String toString()
      Overrides:
      toString in class Object