Class TextGroupElement.Child

  • Enclosing class:
    TextGroupElement

    public class TextGroupElement.Child
    extends Object
    A string of text that should be shown around the parent.
    Author:
    maclean
    • Field Detail

      • text

        public final String text
        The text of this child.
      • subscript

        public final String subscript
        A subscript (if any) for the child.
    • Constructor Detail

      • Child

        public Child​(String text,
                     TextGroupElement.Position position)
        Make a child element with the specified text and position.
        Parameters:
        text - the child's text
        position - the position of the child relative to the parent
      • Child

        public Child​(String text,
                     String subscript,
                     TextGroupElement.Position position)
        Make a child element with the specified text, subscript, and position.
        Parameters:
        text - the child's text
        subscript - a subscript for the child
        position - the position of the child relative to the parent