siuying.gm.app.gmailer4j
Class Utils

java.lang.Object
  extended by siuying.gm.app.gmailer4j.Utils

public class Utils
extends java.lang.Object


Field Summary
static javax.swing.border.Border BORDER_EMPTY
           
static java.awt.Dimension BUTTON_DIMENSION
           
static com.jgoodies.looks.demo.Settings DEF_SETTING
           
 
Constructor Summary
Utils()
           
 
Method Summary
static javax.swing.AbstractButton createToolBarButton(java.lang.String iconName, java.lang.String tooltips)
           
static javax.swing.AbstractButton createToolBarRadioButton(java.lang.String iconName, java.lang.String tooltips)
           
static java.lang.String formatSize(long longSize)
           
static java.lang.String formatSize(long longSize, int decimalPos)
          format memory/file size
static javax.swing.ImageIcon readImageIcon(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEF_SETTING

public static com.jgoodies.looks.demo.Settings DEF_SETTING

BORDER_EMPTY

public static javax.swing.border.Border BORDER_EMPTY

BUTTON_DIMENSION

public static java.awt.Dimension BUTTON_DIMENSION
Constructor Detail

Utils

public Utils()
Method Detail

readImageIcon

public static javax.swing.ImageIcon readImageIcon(java.lang.String filename)

createToolBarButton

public static javax.swing.AbstractButton createToolBarButton(java.lang.String iconName,
                                                             java.lang.String tooltips)

createToolBarRadioButton

public static javax.swing.AbstractButton createToolBarRadioButton(java.lang.String iconName,
                                                                  java.lang.String tooltips)

formatSize

public static java.lang.String formatSize(long longSize)

formatSize

public static java.lang.String formatSize(long longSize,
                                          int decimalPos)
format memory/file size

Parameters:
long - longSize number to format
int - decimalPos decimal places