Class BoxedValueIcon

    • Field Detail

      • boxColor

        public ColorAttribute boxColor
        Color of the box. This defaults to white.
    • Constructor Detail

      • BoxedValueIcon

        public BoxedValueIcon​(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 draw a box around the value display, where the width of the box depends on the value.
        Overrides:
        createBackgroundFigure in class XMLIcon
        Returns:
        A new figure.