Class DimensionImpl

    • Field Detail

      • _width

        protected int _width
      • _height

        protected int _height
    • Constructor Detail

      • DimensionImpl

        protected DimensionImpl​()
        Instantiates a new dimension impl.
      • DimensionImpl

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

      • getWidth

        public int getWidth​()
        Retrieves the width from the width property.
        Specified by:
        getWidth in interface WidthAccessor
        Returns:
        The width stored by the width property.
      • getHeight

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

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