org.dmonix.gui
Class ResourceHandler

java.lang.Object
  extended byorg.dmonix.gui.ResourceHandler

public abstract class ResourceHandler
extends java.lang.Object

Title: DMUTIL

Description:

Copyright: Copyright (c) 2003

Company: dmonix.org

Version:
1.0
Author:
Peter Nerg

Field Summary
protected static java.lang.ClassLoader classLoader
           
 
Constructor Summary
ResourceHandler()
           
 
Method Summary
static java.lang.String getBuildNumber()
          Get the buildnumber.
static javax.swing.ImageIcon getDmonixLogo()
          Get the dmonix logo.
static javax.swing.ImageIcon getIcon(java.lang.String name)
           
static javax.swing.ImageIcon getIcon(java.lang.String name, int size)
           
static java.awt.Image getImage(java.lang.String url)
          Loads a URL to an image.
static javax.swing.ImageIcon getImageIcon(java.lang.String url)
          Loads a URL to an ImageIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

protected static final java.lang.ClassLoader classLoader
Constructor Detail

ResourceHandler

public ResourceHandler()
Method Detail

getBuildNumber

public static java.lang.String getBuildNumber()
Get the buildnumber.

Returns:

getDmonixLogo

public static javax.swing.ImageIcon getDmonixLogo()
Get the dmonix logo.

Returns:
the logo

getIcon

public static javax.swing.ImageIcon getIcon(java.lang.String name,
                                            int size)
                                     throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

getIcon

public static javax.swing.ImageIcon getIcon(java.lang.String name)
                                     throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

getImage

public static java.awt.Image getImage(java.lang.String url)
Loads a URL to an image.

Parameters:
url -
Returns:
The image

getImageIcon

public static javax.swing.ImageIcon getImageIcon(java.lang.String url)
Loads a URL to an ImageIcon

Parameters:
url - The url
Returns:
the ImageIcon


Copyright © 1998-2005 dmonix.org Peter Nerg, All Rights Reserved.