loadIconForClass
public boolean loadIconForClass(java.lang.String className,
NamedObj context)
throws IllegalActionException,
NameDuplicationException,
java.io.IOException
Load an icon for a class in a particular context.
- Specified by:
loadIconForClass
in interface IconLoader
- Parameters:
className
- The name of the class for which the icon is to be loaded.
context
- The context in which the icon is loaded.
- Returns:
- true if the icon was successfully loaded.
- Throws:
IllegalActionException
- If there is a problem adding the icon.
NameDuplicationException
- If the icon being added has the same name as an element
already in the context.
java.io.IOException
- If the icon base path cannot be found.
- See Also:
MoMLParser.getIconLoader()
,
MoMLParser.setIconLoader(IconLoader)