Class DisplayTool.Measurements

  • Enclosing class:
    DisplayTool

    public static class DisplayTool.Measurements
    extends Object
    Measures the dimensions of the string given to its constructor. Height is the number of lines in the string. Width is the number of characters in the longest line.
    • Constructor Detail

      • Measurements

        public Measurements​(String s)
    • Method Detail

      • getHeight

        public int getHeight()
      • getWidth

        public int getWidth()