Package org.eclipse.swt.graphics
Class Point.WithMonitor
java.lang.Object
org.eclipse.swt.graphics.Point
org.eclipse.swt.graphics.Point.OfFloat
org.eclipse.swt.graphics.Point.WithMonitor
- All Implemented Interfaces:
Serializable
- Enclosing class:
Point
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.swt.graphics.Point
Point.OfFloat, Point.WithMonitor
-
Field Summary
Fields inherited from class org.eclipse.swt.graphics.Point.OfFloat
residualX, residualY
-
Constructor Summary
ConstructorsConstructorDescriptionWithMonitor
(int x, int y, Monitor monitor) Constructs a new Point.WithMonitor -
Method Summary
Modifier and TypeMethodDescriptionReturns the monitor with whose context the instance is created.Methods inherited from class org.eclipse.swt.graphics.Point.OfFloat
getX, getY, setX, setY
-
Constructor Details
-
WithMonitor
Constructs a new Point.WithMonitor- Parameters:
x
- the x coordinate of the pointy
- the y coordinate of the pointmonitor
- the monitor with whose context the point is created
-
-
Method Details
-
getMonitor
Returns the monitor with whose context the instance is created.- Returns:
- the monitor with whose context the instance is created
-