Class DockingLayout.StageBounds

java.lang.Object
com.dlsc.gemsfx.docking.DockingLayout.StageBounds
Enclosing class:
DockingLayout

public static final class DockingLayout.StageBounds extends Object
Immutable value object representing the bounds and dimensions of a floating stage.
  • Constructor Details

    • StageBounds

      public StageBounds(double x, double y, double width, double height)
      Constructs StageBounds.
      Parameters:
      x - the x coordinate, must be finite
      y - the y coordinate, must be finite
      width - 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