Class Point.OfFloat

java.lang.Object
org.eclipse.swt.graphics.Point
org.eclipse.swt.graphics.Point.OfFloat
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
Point.WithMonitor
Enclosing class:
Point

public static sealed class Point.OfFloat extends Point permits Point.WithMonitor
Instances of this class represent Point objects with the fields capable of storing more precise value in float.
Since:
3.131
See Also:
Restriction:
This class is not intended to be referenced by clients
  • Field Details

    • residualX

      public float residualX
    • residualY

      public float residualY
  • Constructor Details

    • OfFloat

      public OfFloat(int x, int y)
    • OfFloat

      public OfFloat(float x, float y)
  • Method Details

    • getX

      public float getX()
    • getY

      public float getY()
    • setX

      public void setX(float x)
    • setY

      public void setY(float y)
    • clone

      public Point.OfFloat clone()
      Description copied from class: Point
      Creates and returns a shallow copy of this Point.
      Overrides:
      clone in class Point
    • from

      public static Point.OfFloat from(Point point)
      Creates a shallow copy of the provided point as a Point.OfFloat instance.