Class Point.WithMonitor

All Implemented Interfaces:
Serializable
Enclosing class:
Point

public static final class Point.WithMonitor extends Point.OfFloat
Instances of this class represent Point.OfFloat objects along with the context of the monitor in relation to which they are placed on the display. The monitor awareness makes it easy to scale and translate the points between pixels and points.
Since:
3.131
See Also:
Restriction:
This class is not intended to be referenced by clients
  • Constructor Details

    • WithMonitor

      public WithMonitor(int x, int y, Monitor monitor)
      Constructs a new Point.WithMonitor
      Parameters:
      x - the x coordinate of the point
      y - the y coordinate of the point
      monitor - the monitor with whose context the point is created
  • Method Details

    • getMonitor

      public Monitor getMonitor()
      Returns the monitor with whose context the instance is created.
      Returns:
      the monitor with whose context the instance is created