com.pietschy.command.configuration.impl
Class ClassPathIconFactory

java.lang.Object
  extended by com.pietschy.command.configuration.impl.ClassPathIconFactory
All Implemented Interfaces:
IconFactory

 class ClassPathIconFactory
extends java.lang.Object
implements IconFactory

An internal IconFactory implementation that loads an icon of the classpath.


Constructor Summary
ClassPathIconFactory()
           
 
Method Summary
 javax.swing.ImageIcon createIcon(java.lang.String parameters)
          Attempts to load the icon from the classpath using the path specified in the parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathIconFactory

ClassPathIconFactory()
Method Detail

createIcon

public javax.swing.ImageIcon createIcon(java.lang.String parameters)
                                 throws ResourceNotFoundException
Attempts to load the icon from the classpath using the path specified in the parameter.

Specified by:
createIcon in interface IconFactory
Parameters:
parameters - the location of the icon on the classpath.
Returns:
the icon.
Throws:
ResourceNotFoundException - if the icon can't be loaded.


Copyright © 2006 - 2007 Andrew Pietsch