Package org.vaadin.firitin.util
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
top
public int top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
right
public int right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
bottom
public int bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-
left
public int left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-