Class ViewportDimensionImpl

    • Field Detail

      • _width

        protected int _width
      • _height

        protected int _height
    • Constructor Detail

      • ViewportDimensionImpl

        protected ViewportDimensionImpl​()
        Instantiates a new viewport dimension impl.
      • ViewportDimensionImpl

        public ViewportDimensionImpl​(int aWidth,
                                     int aHeight)
        Instantiates a new viewport dimension impl.
        Parameters:
        aWidth - the width
        aHeight - the height
    • Method Detail

      • getViewportWidth

        public int getViewportWidth​()
        Retrieves the viewport width from the viewport width property.
        Specified by:
        getViewportWidth in interface ViewportWidthAccessor
        Returns:
        The viewport width stored by the viewport width property.
      • getViewportHeight

        public int getViewportHeight​()
        Retrieves the viewport height from the viewport height property.
        Specified by:
        getViewportHeight in interface ViewportHeightAccessor
        Returns:
        The viewport height stored by the viewport height property.
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object