Class TextWidthFinder

java.lang.Object
net.lucypoulton.squirtgun.format.TextWidthFinder

public class TextWidthFinder extends Object
Calculates the pixel of a string when using the default font.
  • Constructor Details

    • TextWidthFinder

      public TextWidthFinder()
  • Method Details

    • findWidth

      public static int findWidth(String input)
      Calculates the pixel of a string when using the default font.
      Parameters:
      input - the string to calculate
      Returns:
      the pixel countc