Package ptolemy.moml

Interface IconLoader

  • All Known Implementing Classes:
    AccessorIconLoader, TestIconLoader

    public interface IconLoader
    Interface for loading icons.
    Since:
    Ptolemy II 5.2
    Version:
    $Id$
    Author:
    Edward A. Lee, Christopher Brooks
    See Also:
    MoMLParser
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (eal)
    • Method Detail

      • loadIconForClass

        boolean loadIconForClass​(java.lang.String className,
                                 NamedObj context)
                          throws java.lang.Exception
        Load an icon for a class in a particular context.
        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)