|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IconFactory
Icon factories are used by the ConfigurationLoader to create icons whenever the
icon type is specified as factory. By implementing
this interface you can get complete control over how icons are loaded from the
face configuration elements.
For example, a icon configuration of
command@face.icon=factory:abcdwill result in a call to
createIcon(String) where the parameter
value is abcd.
The factory must be configured using Defaults.setIconFactory(IconFactory) prior to any
configuration file being loaded.
Defaults.setIconFactory(IconFactory)| Method Summary | |
|---|---|
javax.swing.Icon |
createIcon(java.lang.String parameters)
Creates a new icon based on the specified parameter string. |
| Method Detail |
|---|
javax.swing.Icon createIcon(java.lang.String parameters)
throws java.lang.Exception
parameters - the icon text as specified by the configuration file.
java.lang.Exception - if the there was an error creating the icon.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||