Class OctagonEventIcon

    • Field Detail

      • _cornerWidth

        protected double _cornerWidth
        The width of a corner of a polygon.
    • Constructor Detail

      • OctagonEventIcon

        public OctagonEventIcon​(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.
      • _getBackgroundSize

        protected java.awt.geom.Point2D _getBackgroundSize()
        Description copied from class: NameIcon
        Return the background size.
        Overrides:
        _getBackgroundSize in class NameIcon
        Returns:
        the background size.
      • _getFill

        protected java.awt.Paint _getFill()
        Description copied from class: NameIcon
        Return the paint to use to fill the icon. This base class returns the value of the color attribute.
        Overrides:
        _getFill in class NameIcon
        Returns:
        The paint to use to fill the icon.
      • _getLineWidth

        protected float _getLineWidth()
        Return the line width to use in rendering the box. This returns 1.0f, unless the container is an instance of State and its isInitialState parameter is set to true.
        Overrides:
        _getLineWidth in class NameIcon
        Returns:
        The line width to use in rendering the box.