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
-
-
Constructor Summary
Constructors Constructor Description Child(String text, String subscript, TextGroupElement.Position position)
Make a child element with the specified text, subscript, and position.Child(String text, TextGroupElement.Position position)
Make a child element with the specified text and position.
-
-
-
Field Detail
-
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 Detail
-
Child
public Child(String text, TextGroupElement.Position position)
Make a child element with the specified text and position.- Parameters:
text
- the child's textposition
- 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 textsubscript
- a subscript for the childposition
- the position of the child relative to the parent
-
-