java.lang.Object
stud.ntnu.idatt1005.pantrypal.utils.Sizing
The Sizing class is a utility class that provides methods
for getting the screen size and the size of the recipe box.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[]
Constructor for the size of the recipe box.static double
Constructor for the height of the screen.static double
Constructor for the width of the screen.
-
Constructor Details
-
Sizing
public Sizing()
-
-
Method Details
-
getScreenWidth
public static double getScreenWidth()Constructor for the width of the screen.- Returns:
- the width of the screen
-
getScreenHeight
public static double getScreenHeight()Constructor for the height of the screen.- Returns:
- the height of the screen
-
getRecipeBoxSize
public static double[] getRecipeBoxSize()Constructor for the size of the recipe box.- Returns:
- the size of the recipe box
-