Class AbstractTextAttribute

    • Field Detail

      • anchor

        public StringParameter anchor
        Indication of which point of the text should be aligned to the grid. The possible values are "center", "east", "north", "northeast", "northwest" (the default), "south", "sountheast", "southwest", or "west".
      • bold

        public Parameter bold
        A boolean indicating whether the font should be bold. This defaults to false.
      • fontFamily

        public StringParameter fontFamily
        The font family. This is a string that defaults to "SansSerif".
      • italic

        public Parameter italic
        A boolean indicating whether the font should be italic. This defaults to false.
      • textColor

        public ColorAttribute textColor
        The text color. This is a string representing an array with four elements, red, green, blue, and alpha, where alpha is transparency. The default is "{0.0, 0.0, 0.0, 1.0}", which represents an opaque black.
      • textSize

        public Parameter textSize
        The text size. This is an int that defaults to 14.
      • _icon

        protected TextIcon _icon
        The text icon.
    • Constructor Detail

      • AbstractTextAttribute

        public AbstractTextAttribute​(NamedObj container,
                                     java.lang.String name)
                              throws IllegalActionException,
                                     NameDuplicationException
        Construct an attribute with the given name contained by the specified container. The container argument must not be null, or a NullPointerException will be thrown. This attribute will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace.
        Parameters:
        container - The container.
        name - The name of this attribute.
        Throws:
        IllegalActionException - If the attribute is not of an acceptable class for the container, or if the name contains a period.
        NameDuplicationException - If the name coincides with an attribute already in the container.