com.pietschy.command.configuration.impl
Class UrlIconFactory

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

 class UrlIconFactory
extends java.lang.Object
implements IconFactory

IconFactory implementation that loads icons from URLs.


Constructor Summary
UrlIconFactory()
           
 
Method Summary
 javax.swing.Icon createIcon(java.lang.String parameters)
          Attempts to create an icon from the specified URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlIconFactory

UrlIconFactory()
Method Detail

createIcon

public javax.swing.Icon createIcon(java.lang.String parameters)
                            throws ParseException
Attempts to create an icon from the specified URL.

Specified by:
createIcon in interface IconFactory
Parameters:
parameters - the URL
Returns:
an icon loaded from the URL.
Throws:
ParseException - if there was an error loading the icon.


Copyright © 2006 - 2007 Andrew Pietsch