Package org.eclipse.swt.graphics
Class MonitorAwarePoint
java.lang.Object
org.eclipse.swt.graphics.Point
org.eclipse.swt.graphics.MonitorAwarePoint
- All Implemented Interfaces:
Serializable
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
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMonitorAwarePoint
(int x, int y, Monitor monitor) Constructs a new MonitorAwarePoint -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.Returns the monitor with whose context the instance is created.int
hashCode()
Returns an integer hash code for the receiver.
-
Constructor Details
-
MonitorAwarePoint
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
Returns the monitor with whose context the instance is created.- Returns:
- the monitor with whose context the instance is created
-
equals
Description copied from class:Point
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. -
hashCode
public int hashCode()Description copied from class:Point
Returns an integer hash code for the receiver. Any two objects that returntrue
when passed toequals
must return the same value for this method.
-