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,Cloneable
- 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 TypeMethodDescriptionclone()Creates and returns a shallow copy of thisPoint.Returns the monitor with whose context the instance is created.
-
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
-
clone
Description copied from class:PointCreates and returns a shallow copy of thisPoint.- Overrides:
clonein classPoint.OfFloat
-