Class ActorNameIcon

    • Constructor Detail

      • ActorNameIcon

        public ActorNameIcon​(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

      • createBackgroundFigure

        public Figure createBackgroundFigure()
        Create a new background figure. This overrides the base class to with a different display height and hides the name of the container if it exists.
        Overrides:
        createBackgroundFigure in class BoxedValueIcon
        Returns:
        A new figure.