Package ptolemy.moml.test
Class TestIconLoader
- java.lang.Object
-
- ptolemy.moml.test.TestIconLoader
-
- All Implemented Interfaces:
IconLoader
public class TestIconLoader extends java.lang.Object implements IconLoader
Test class for ptolemy.moml.IconLoader. The IconLoader class has an abstract method, so we use this class to define that method.- Since:
- Ptolemy II 6.1
- Version:
- $Id$
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description TestIconLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
loadIconForClass(java.lang.String className, NamedObj context)
Load an icon for a class in a particular context.
-
-
-
Method Detail
-
loadIconForClass
public boolean loadIconForClass(java.lang.String className, NamedObj context) throws java.lang.Exception
Load an icon for a class in a particular context.- Specified by:
loadIconForClass
in interfaceIconLoader
- 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:
java.lang.Exception
- If there is a problem adding the icon.- See Also:
MoMLParser.getIconLoader()
,MoMLParser.setIconLoader(IconLoader)
-
-