Class MultipleConceptIcon

    • Field Detail

      • translation

        public Parameter translation
        The amount of translation to apply to the background figure. This is a double that defaults to 10.0.
    • Constructor Detail

      • MultipleConceptIcon

        public MultipleConceptIcon​(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 specified container.
        name - The specified name.
        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 set of backgrounds.
        Overrides:
        createBackgroundFigure in class NameIcon
        Returns:
        A new figure.
      • createIcon

        public javax.swing.Icon createIcon()
        Create an icon. This overrides the base class to draw a set of boxes to represent multiple concepts.
        Overrides:
        createIcon in class NameIcon
        Returns:
        The icon.
      • _getLabel

        protected LabelFigure _getLabel​(CompositeFigure background,
                                        java.lang.String name)
        Get the label to put on the specified background figure based on the specified name.
        Overrides:
        _getLabel in class NameIcon
        Parameters:
        background - The background figure on which to put the label.
        name - The name on which to base the label.
        Returns:
        The label figure.