Package org.eclipse.swt.graphics
Class MonitorAwareRectangle
java.lang.Object
org.eclipse.swt.graphics.Rectangle
org.eclipse.swt.graphics.MonitorAwareRectangle
- All Implemented Interfaces:
Serializable,Cloneable
@Deprecated(forRemoval=true,
since="2025-09")
public final class MonitorAwareRectangle
extends Rectangle
Deprecated, for removal: This API element is subject to removal in a future version.
Instances of this class represent
Rectangle
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 rectangles 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.Rectangle
Rectangle.OfFloat, Rectangle.WithMonitor -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMonitorAwareRectangle(int x, int y, int width, int height, Monitor monitor) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new MonitorAwareRectangle -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns a copy of thisRectangle.booleanDeprecated, 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.Methods inherited from class org.eclipse.swt.graphics.Rectangle
add, contains, contains, intersect, intersection, intersects, intersects, isEmpty, of, toString, union
-
Constructor Details
-
MonitorAwareRectangle
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new MonitorAwareRectangle- Parameters:
x- the x coordinate of the top left corner of the rectangley- the y coordinate of the top left corner of the rectanglewidth- the width of the rectangleheight- the height of the rectanglemonitor- the monitor with whose context the rectangle 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:RectangleCompares 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:RectangleReturns an integer hash code for the receiver. Any two objects that returntruewhen passed toequalsmust return the same value for this method. -
clone
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RectangleCreates and returns a copy of thisRectangle.This method performs a shallow copy of the rectangle's fields:
x,y,width, andheight. It does not copy any subclass-specific fields, so subclasses should override this method if additional fields exist.
-