Class StringUtils


  • public class StringUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StringUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String shortText​(java.lang.String text, FontMetrics fm, int width)
      This method puts three dots (...) at the final of the text to fit in the size you passed in.
      • Methods inherited from class java.lang.Object

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

      • StringUtils

        public StringUtils()
    • Method Detail

      • shortText

        public static java.lang.String shortText​(java.lang.String text,
                                                 FontMetrics fm,
                                                 int width)
        This method puts three dots (...) at the final of the text to fit in the size you passed in.