Class SuperSquare


  • public class SuperSquare
    extends java.lang.Object
    Class SuperSquare keeps track of the dimensions of the super square.
    • Method Detail

      • getInstance

        public static SuperSquare getInstance()
        Get instance of SuperSquare.
        Returns:
        instance
      • getDimX

        public int getDimX()
        Get width.
        Returns:
        width
      • setDimX

        public void setDimX​(int dimX)
        Set width.
        Parameters:
        dimX - width
      • getDimY

        public int getDimY()
        Get height
        Returns:
        height
      • setDimY

        public void setDimY​(int dimY)
        Set height.
        Parameters:
        dimY - height