net.sf.doolin.gui.service.icon
Class DefaultIconService
java.lang.Object
net.sf.doolin.gui.service.icon.AbstractIconService
net.sf.doolin.gui.service.icon.DefaultIconService
- All Implemented Interfaces:
- IconService
- Direct Known Subclasses:
- PropertyIconService, SimpleIconService
public class DefaultIconService
- extends AbstractIconService
Default icon manager. It loads icons using the classpath.
- Author:
- Damien Coraboeuf
|
Method Summary |
protected Icon |
loadIconObject(String path)
This method must be overriden by subclasses in order to load an icon from
a path. |
protected URL |
toURL(String path)
This method must be overriden by subclasses in order to return the URL to
an icon defined by the given path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIconService
public DefaultIconService()
loadIconObject
protected Icon loadIconObject(String path)
- Description copied from class:
AbstractIconService
- This method must be overriden by subclasses in order to load an icon from
a path.
- Specified by:
loadIconObject in class AbstractIconService
- Parameters:
path - Path to the icon (could be a resource path but could be
something else according to the icon manager implementation).
- Returns:
- Icon
toURL
protected URL toURL(String path)
- Description copied from class:
AbstractIconService
- This method must be overriden by subclasses in order to return the URL to
an icon defined by the given path.
- Specified by:
toURL in class AbstractIconService
- Parameters:
path - Path to the icon (could be a resource path but could be
something else according to the icon manager implementation).
- Returns:
- Icon URL
Copyright © 2011. All Rights Reserved.