Class NoteStyle

    • Constructor Detail

      • NoteStyle

        public NoteStyle​(NamedObj container,
                         java.lang.String name)
                  throws IllegalActionException,
                         NameDuplicationException
        Construct an attribute with the specified container and name.
        Parameters:
        container - The container.
        name - The name of the attribute.
        Throws:
        IllegalActionException - If the attribute is not of an acceptable attribute for the container, or if the container is not an instance of Settable.
        NameDuplicationException - If the name coincides with an attribute already in the container.
    • Method Detail

      • acceptable

        public boolean acceptable​(Settable param)
        Return true if this style is acceptable for the given parameter.
        Specified by:
        acceptable in class ParameterEditorStyle
        Parameters:
        param - The attribute that this annotates.
        Returns:
        True.
      • addEntry

        public void addEntry​(PtolemyQuery query)
        Create a new type-in line entry in the given query associated with the attribute containing this style. The name of the entry is the name of the attribute. Attach the attribute to the created entry.
        Specified by:
        addEntry in class ParameterEditorStyle
        Parameters:
        query - The query into which to add the entry.