Class DockingLayout.StageBounds
java.lang.Object
com.dlsc.gemsfx.docking.DockingLayout.StageBounds
- Enclosing class:
DockingLayout
Immutable value object representing the bounds and dimensions of a floating stage.
-
Constructor Summary
ConstructorsConstructorDescriptionStageBounds(double x, double y, double width, double height) Constructs StageBounds. -
Method Summary
-
Constructor Details
-
StageBounds
public StageBounds(double x, double y, double width, double height) Constructs StageBounds.- Parameters:
x- the x coordinate, must be finitey- the y coordinate, must be finitewidth- the width, must be positive (> 0)height- the height, must be positive (> 0)- Throws:
IllegalArgumentException- if coordinates/dimensions are non-finite or dimensions are non-positive
-
-
Method Details
-
getX
public double getX()Returns the x coordinate.- Returns:
- the x coordinate
-
getY
public double getY()Returns the y coordinate.- Returns:
- the y coordinate
-
getWidth
public double getWidth()Returns the width.- Returns:
- the width
-
getHeight
public double getHeight()Returns the height.- Returns:
- the height
-