Record Class ResizeObserver.Dimensions
java.lang.Object
java.lang.Record
org.vaadin.firitin.util.ResizeObserver.Dimensions
- Record Components:
x
- the x coordinate of the DOMRectReadOnly's origin.y
- the y coordinate of the DOMRectReadOnly's origin.width
- the width of the DOMRectReadOnly.height
- the height of the DOMRectReadOnly.top
- the top coordinate value of the DOMRectReadOnly (usually the same as y).right
- the right coordinate value of the DOMRectReadOnly (usually the same as x + width).bottom
- the bottom coordinate value of the DOMRectReadOnly (usually the same as y + height).left
- the left coordinate value of the DOMRectReadOnly (usually the same as x).
- Enclosing class:
ResizeObserver
public static record ResizeObserver.Dimensions(int x, int y, int width, int height, int top, int right, int bottom, int left)
extends Record
A record that describes the size and position of a component. Serialized from the browsers
DOMRectReadOnly
-
Constructor Summary
ConstructorDescriptionDimensions
(int x, int y, int width, int height, int top, int right, int bottom, int left) Creates an instance of aDimensions
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
bottom()
Returns the value of thebottom
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.int
left()
Returns the value of theleft
record component.int
right()
Returns the value of theright
record component.int
top()
Returns the value of thetop
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.int
x()
Returns the value of thex
record component.int
y()
Returns the value of they
record component.
-
Constructor Details
-
Dimensions
public Dimensions(int x, int y, int width, int height, int top, int right, int bottom, int left) Creates an instance of aDimensions
record class.- Parameters:
x
- the value for thex
record componenty
- the value for they
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
record componenttop
- the value for thetop
record componentright
- the value for theright
record componentbottom
- the value for thebottom
record componentleft
- the value for theleft
record component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecompare
method from their corresponding wrapper classes. -
x
-
y
-
width
-
height
-
top
-
right
-
bottom
-
left
-