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:
-
Nested Class Summary
Nested classes/interfaces inherited from class Point
Point.OfFloat, Point.WithMonitor -
Field Summary
FieldsFields inherited from class Point.OfFloat
residualX, residualY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWithMonitor(float x, float y, Monitor monitor) WithMonitor(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.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
monitor
-
-
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
-
WithMonitor
-
-
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
-