| Constructor and Description |
|---|
PositionAndSize(int left,
int top,
int width,
int height)
Constructs a data object for storing position and size information.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Returns the pixel value for height css property.
|
int |
getLeft()
Returns the pixel value for left css property.
|
int |
getTop()
Returns the pixel value for top css property.
|
int |
getWidth()
Returns the pixel value for width css property.
|
void |
setAnimationFromCenterProgress(double progress)
Offset the set values from center by given progress to create the
state of a single animation frame.
|
void |
setHeight(int height)
Sets the pixel value for height css property.
|
void |
setLeft(int left)
Sets the pixel value for left css property.
|
void |
setTop(int top)
Sets the pixel value for top css property.
|
void |
setWidth(int width)
Sets the pixel value for width css property.
|
public PositionAndSize(int left,
int top,
int width,
int height)
left - pixel value for left css propertytop - pixel value for top css propertywidth - pixel value for width css propertyheight - pixel value for height css propertypublic int getLeft()
public void setLeft(int left)
left - value to setpublic int getTop()
public void setTop(int top)
top - value to setpublic int getWidth()
public void setWidth(int width)
width - value to setpublic int getHeight()
public void setHeight(int height)
height - value to setpublic void setAnimationFromCenterProgress(double progress)
progress - A value between 0.0 and 1.0, indicating the progress of
the animation (0=start, 1=end).Copyright © 2023 Vaadin Ltd. All rights reserved.