Class GridDimensionImpl

java.lang.Object
org.refcodes.graphical.GridDimensionImpl
All Implemented Interfaces:
GridDimension, GridHeightAccessor, GridWidthAccessor

public class GridDimensionImpl extends Object implements GridDimension
The Class GridDimensionImpl.
Author:
steiner
  • Field Details

    • _width

      protected int _width
    • _height

      protected int _height
  • Constructor Details

    • GridDimensionImpl

      protected GridDimensionImpl()
      Instantiates a new grid dimension impl.
    • GridDimensionImpl

      public GridDimensionImpl(int aWidth, int aHeight)
      Instantiates a new grid dimension impl.
      Parameters:
      aWidth - the width
      aHeight - the height
  • Method Details

    • getGridWidth

      public int getGridWidth()
      Retrieves the grid width from the grid width property.
      Specified by:
      getGridWidth in interface GridWidthAccessor
      Returns:
      The grid width stored by the grid width property.
    • getGridHeight

      public int getGridHeight()
      Retrieves the grid height from the grid height property.
      Specified by:
      getGridHeight in interface GridHeightAccessor
      Returns:
      The grid height stored by the grid height property.
    • toString

      public String toString()
      Overrides:
      toString in class Object