Class ConceptIcon

    • Constructor Detail

      • ConceptIcon

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

      • _getFill

        protected java.awt.Paint _getFill()
        Return the fill color. This will return the color specified by the first instance of ColorAttribute in the container, or white if there is no such instance.
        Overrides:
        _getFill in class NameIcon
        Returns:
        The fill color.
      • _getLineWidth

        protected float _getLineWidth()
        Return the line width. If the concept is an unacceptable solution, this returns a thicker width.
        Overrides:
        _getLineWidth in class NameIcon
        Returns:
        The line width.