ar.com.fdvs.dj.core
Class FontHelper

java.lang.Object
  extended by ar.com.fdvs.dj.core.FontHelper

public class FontHelper
extends java.lang.Object


Constructor Summary
FontHelper()
           
 
Method Summary
static int getHeightFor(Font font)
          Calculates the minium height needed for the specified font and size.
static int getWidthFor(Font font, java.lang.String text)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontHelper

public FontHelper()
Method Detail

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,
                              java.lang.String text)

main

public static void main(java.lang.String[] args)


Copyright © 2006-2011 FDV Solutions. All Rights Reserved.