Class MarginConstructor

java.lang.Object
it.polimi.ingsw.view.cli.drawer.MarginConstructor

public class MarginConstructor
extends java.lang.Object
Class that builds margins
  • Constructor Summary

    Constructors
    Constructor Description
    MarginConstructor()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String[][] buildMargins​(int row_dim, int col_dim)
    Build an empty square surrounded by a margin

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MarginConstructor

      public MarginConstructor()
  • Method Details

    • buildMargins

      public static java.lang.String[][] buildMargins​(int row_dim, int col_dim)
      Build an empty square surrounded by a margin
      Parameters:
      row_dim - , width of the square (margins included)
      col_dim - , height of the square (margins included)
      Returns:
      a matrix of String that represent the margin square