Package org.eclipse.swt.graphics
Class MonitorAwarePoint
java.lang.Object
org.eclipse.swt.graphics.Point
org.eclipse.swt.graphics.MonitorAwarePoint
- All Implemented Interfaces:
Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
Instances of this class represent
Point
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.129
- 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
-
Constructor Summary
ConstructorsConstructorDescriptionMonitorAwarePoint(int x, int y, Monitor monitor) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new MonitorAwarePoint -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.Deprecated, for removal: This API element is subject to removal in a future version.Returns the monitor with whose context the instance is created.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns an integer hash code for the receiver.
-
Constructor Details
-
MonitorAwarePoint
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new MonitorAwarePoint- 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
Deprecated, for removal: This API element is subject to removal in a future version.Returns the monitor with whose context the instance is created.- Returns:
- the monitor with whose context the instance is created
-
equals
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:PointCompares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:PointReturns an integer hash code for the receiver. Any two objects that returntruewhen passed toequalsmust return the same value for this method.
-