Class TextGroupElement.Child

java.lang.Object
org.openscience.cdk.renderer.elements.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 Details

    • text

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

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

      public final TextGroupElement.Position position
      The position of the child relative to the parent.
  • Constructor Details

    • 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