org.universAAL.ui.handler.gui.swing.model
Class IconFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconFactory
public IconFactory()
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.