org.universAAL.ui.handler.gui.swing.model
Class IconFactory

Package class diagram package IconFactory
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.IconFactory

public class IconFactory
extends Object

Entry point for all icon URL. implements the searching procedure for icon files.

Author:
amedrano

Constructor Summary
IconFactory()
           
 
Method Summary
static Icon getIcon(String url)
          search for the icon in different repositories, when url is relative.
static Icon resizeIcon(Icon icon, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconFactory

public IconFactory()
Method Detail

getIcon

public static Icon getIcon(String url)
search for the icon in different repositories, when url is relative.

Parameters:
url - url of the resource from where to get the icon
Returns:
the ImageIcon referenced by the URL null if url is empty, or the file is not found.

resizeIcon

public static Icon resizeIcon(Icon icon,
                              int width,
                              int height)


Copyright © 2014 universAAL Consortium. All Rights Reserved.