Class DesignPatternIcon

    • Constructor Detail

      • DesignPatternIcon

        public DesignPatternIcon​(NamedObj container,
                                 java.lang.String name)
                          throws NameDuplicationException,
                                 IllegalActionException
        Create a new icon with the given name in the given container. The container is required to implement Settable, or an exception will be thrown.
        Parameters:
        container - The container for this attribute.
        name - The name of this attribute.
        Throws:
        IllegalActionException - If thrown by the parent class or while setting an attribute.
        NameDuplicationException - If the name coincides with an attribute already in the container.
    • Method Detail

      • createIcon

        public javax.swing.Icon createIcon()
        Create an icon.
        Overrides:
        createIcon in class NameIcon
        Returns:
        The icon.