Package com.oorian
Class Size
java.lang.Object
com.oorian.Size
Represents a two-dimensional size with width and height.
Size is used throughout the Oorian framework to represent screen dimensions, window dimensions, and element sizes. It stores width and height as integers representing pixels.
Usage:
Size screenSize = clientProfile.getScreenSize();
int width = screenSize.getWidth();
int height = screenSize.getHeight();
- Since:
- 2021
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Size
public Size()Constructs a new Size with default dimensions (0, 0).
-
-
Method Details
-
setSize
Copies the dimensions from another Size object.- Parameters:
size- the Size to copy from
-
setSize
public void setSize(int width, int height) Sets the width and height dimensions.- Parameters:
width- the width in pixelsheight- the height in pixels
-
getWidth
public int getWidth()Returns the width dimension.- Returns:
- the width in pixels
-
getHeight
public int getHeight()Returns the height dimension.- Returns:
- the height in pixels
-