net.sf.doolin.gui.service.icon
Class DefaultIconService

java.lang.Object
  extended by net.sf.doolin.gui.service.icon.AbstractIconService
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.doolin.gui.service.icon.AbstractIconService
AbstractIconService.IconItem
 
Constructor Summary
DefaultIconService()
           
 
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 net.sf.doolin.gui.service.icon.AbstractIconService
getIcon, getIconDefinitions, getIconURL, init, load, setIconDefinitions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIconService

public DefaultIconService()
Method Detail

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.