| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xulux.guilayer.swing.util.SwingUtils
public class SwingUtils
Contains several utilities to make life with swing easier.
| Constructor Summary | |
|---|---|
protected  | 
SwingUtils()
Override constructor.  | 
| Method Summary | |
|---|---|
static java.awt.Dimension | 
getDimension(org.xulux.api.gui.IWidgetRectangle rectangle)
 | 
static javax.swing.ImageIcon | 
getIcon(java.lang.String resource,
        java.lang.Object object)
 | 
static java.awt.Image | 
getImage(java.lang.String resource,
         java.lang.Object object)
Returns the image based on the resource.  | 
protected static ImageLoaderInterface | 
getImageLoader()
 | 
static java.awt.Insets | 
getInsets(java.lang.String margin)
Creates an insets object from a comma delimited string.  | 
protected static void | 
initializeImageLoader()
Initializes the imageloader from system properties.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected SwingUtils()
| Method Detail | 
|---|
protected static void initializeImageLoader()
protected static ImageLoaderInterface getImageLoader()
public static java.awt.Image getImage(java.lang.String resource,
                                      java.lang.Object object)
resource - - the resource from the classpathobject - - the object to get the classLoader from.
                  At this time it cannot be null
public static javax.swing.ImageIcon getIcon(java.lang.String resource,
                                            java.lang.Object object)
resource - the resource of the imageobject - the object to get the classloader from
public static java.awt.Dimension getDimension(org.xulux.api.gui.IWidgetRectangle rectangle)
rectangle - the rectangle to get the dimensions for
public static java.awt.Insets getInsets(java.lang.String margin)
margin - - the margin in the format top,left,bottom,right
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||