Class ViewportDimensionImpl

java.lang.Object
org.refcodes.graphical.ViewportDimensionImpl
All Implemented Interfaces:
ViewportDimension, ViewportHeightAccessor, ViewportWidthAccessor
Direct Known Subclasses:
ViewportDimensionPropertyBuilder

public class ViewportDimensionImpl extends Object implements ViewportDimension
The Class ViewportDimensionImpl.
Author:
steiner
  • Field Details

    • _width

      protected int _width
    • _height

      protected int _height
  • Constructor Details

    • 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 Details

    • 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 String toString()
      Overrides:
      toString in class Object