Class Bounds


  • @Beta
    public class Bounds
    extends java.lang.Object
    Browser window bounds information
    • Constructor Summary

      Constructors 
      Constructor Description
      Bounds​(java.util.Optional<java.lang.Integer> left, java.util.Optional<java.lang.Integer> top, java.util.Optional<java.lang.Integer> width, java.util.Optional<java.lang.Integer> height, java.util.Optional<WindowState> windowState)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Integer> getHeight()
      The window height in pixels.
      java.util.Optional<java.lang.Integer> getLeft()
      The offset from the left edge of the screen to the window in pixels.
      java.util.Optional<java.lang.Integer> getTop()
      The offset from the top edge of the screen to the window in pixels.
      java.util.Optional<java.lang.Integer> getWidth()
      The window width in pixels.
      java.util.Optional<WindowState> getWindowState()
      The window state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Bounds

        public Bounds​(java.util.Optional<java.lang.Integer> left,
                      java.util.Optional<java.lang.Integer> top,
                      java.util.Optional<java.lang.Integer> width,
                      java.util.Optional<java.lang.Integer> height,
                      java.util.Optional<WindowState> windowState)
    • Method Detail

      • getLeft

        public java.util.Optional<java.lang.Integer> getLeft()
        The offset from the left edge of the screen to the window in pixels.
      • getTop

        public java.util.Optional<java.lang.Integer> getTop()
        The offset from the top edge of the screen to the window in pixels.
      • getWidth

        public java.util.Optional<java.lang.Integer> getWidth()
        The window width in pixels.
      • getHeight

        public java.util.Optional<java.lang.Integer> getHeight()
        The window height in pixels.
      • getWindowState

        public java.util.Optional<WindowState> getWindowState()
        The window state. Default to normal.