synergynetframework.appsystem.contentsystem
Class ContentSystemUtils

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.ContentSystemUtils

public class ContentSystemUtils
extends java.lang.Object

The Class ContentSystemUtils.


Constructor Summary
ContentSystemUtils()
           
 
Method Summary
static int getFontDescent(java.awt.Font font)
          Gets the font descent.
static int getFontHeight(java.awt.Font font)
          Gets the font height.
static int getStringWidth(java.awt.Font font, java.lang.String text)
          Gets the string width.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentSystemUtils

public ContentSystemUtils()
Method Detail

getFontDescent

public static int getFontDescent(java.awt.Font font)
Gets the font descent.

Parameters:
font - the font
Returns:
the font descent

getFontHeight

public static int getFontHeight(java.awt.Font font)
Gets the font height.

Parameters:
font - the font
Returns:
the font height

getStringWidth

public static int getStringWidth(java.awt.Font font,
                                 java.lang.String text)
Gets the string width.

Parameters:
font - the font
text - the text
Returns:
the string width