类 DisplayTool.Measurements

java.lang.Object
org.apache.velocity.tools.generic.DisplayTool.Measurements
封闭类:
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.
  • 字段详细资料

    • height

      private int height
    • width

      private int width
  • 构造器详细资料

    • Measurements

      public Measurements(String s)
  • 方法详细资料

    • getHeight

      public int getHeight()
    • getWidth

      public int getWidth()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object