Class ConstraintMonitorIcon

    • Field Detail

      • closeColor

        public ColorAttribute closeColor
        Color of the box to use when the constraint is close to the threshold. This defaults to yellow.
      • closeFraction

        public Parameter closeFraction
        Fraction of the threshold that is to be considered close to the threshold. This is a double that defaults to 0.1.
      • highColor

        public ColorAttribute highColor
        Color of the box to use when the constraint is above the threshold. This defaults to pink.
      • okColor

        public ColorAttribute okColor
        Color of the box to use when the constraint is satisfied. This defaults to a light green.
    • Constructor Detail

      • ConstraintMonitorIcon

        public ConstraintMonitorIcon​(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.