Package net.lucypoulton.squirtgun.format
Class TextWidthFinder
java.lang.Object
net.lucypoulton.squirtgun.format.TextWidthFinder
Calculates the pixel of a string when using the default font.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TextWidthFinder
public TextWidthFinder()
-
-
Method Details
-
findWidth
Calculates the pixel of a string when using the default font.- Parameters:
input- the string to calculate- Returns:
- the pixel countc
-