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
ConstructorsConstructorDescriptionDimensions(int x, int y, int width, int height, int top, int right, int bottom, int left) Creates an instance of aDimensionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intleft()Returns the value of theleftrecord component.intright()Returns the value of therightrecord component.inttop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord 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 aDimensionsrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componenttop- the value for thetoprecord componentright- the value for therightrecord componentbottom- the value for thebottomrecord componentleft- the value for theleftrecord 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 thecomparemethod from their corresponding wrapper classes. -
x
-
y
-
width
-
height
-
top
-
right
-
bottom
-
left
-