ar.com.fdvs.dj.core
Class FontHelper
java.lang.Object
ar.com.fdvs.dj.core.FontHelper
public class FontHelper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FontHelper
public FontHelper()
getHeightFor
public static int getHeightFor(Font font)
- Calculates the minium height needed for the specified font and size.
You must also take in count if there is any padding, etc in your textfield.
NOTE: Under development. only works with SansSerif
- Parameters:
font -
- Returns:
getWidthFor
public static int getWidthFor(Font font,
String text)
main
public static void main(String[] args)
Copyright © 2006-2013 FDV Solutions. All Rights Reserved.