public final class MathRightSubSuperscriptElement extends BaseScript implements IMathRightSubSuperscriptElement
Specifies the Sub-Superscript object, which consists of a base and a subscript and superscript placed to the right of the base.
Example:MathRightSubSuperscriptElement subsuperscript = new MathematicalText("N").SetSubSuperscriptOnTheRight("i", "j");
| Constructor and Description |
|---|
MathRightSubSuperscriptElement(IMathElement baseArg,
IMathElement subScript,
IMathElement superScript)
Initializes a new instance of the MathRightSubSuperscriptElement class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlignScripts()
Specifies the alignment of subscript/superscript.
|
IMathElement[] |
getChildren()
Get children elements
|
IMathElement |
getSubscript()
Subscript argument
|
IMathElement |
getSuperscript()
Superscript argument
|
void |
setAlignScripts(boolean value)
Specifies the alignment of subscript/superscript.
|
getBase, getControlCharacterPropertiesaccent, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, divide, divide, divide, divide, enclose, enclose, function, function, getParent_Immediate, group, group, integral, integral, integral, integral, integral, join, join, nary, nary, overbar, radical, radical, setLowerLimit, setLowerLimit, setSubscript, setSubscript, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheRight, setSubSuperscriptOnTheRight, setSuperscript, setSuperscript, setUpperLimit, setUpperLimit, toBorderBox, toBorderBox, toBox, toMathArray, underbarequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseaccent, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, divide, divide, divide, divide, enclose, enclose, function, function, group, group, integral, integral, integral, integral, integral, join, join, nary, nary, overbar, radical, radical, setLowerLimit, setLowerLimit, setSubscript, setSubscript, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheRight, setSubSuperscriptOnTheRight, setSuperscript, setSuperscript, setUpperLimit, setUpperLimit, toBorderBox, toBorderBox, toBox, toMathArray, underbarpublic MathRightSubSuperscriptElement(IMathElement baseArg, IMathElement subScript, IMathElement superScript)
Initializes a new instance of the MathRightSubSuperscriptElement class.
public final IMathElement getSubscript()
Subscript argument
Example:IMathElement baseElement = new MathematicalText("X"); IMathElement subscript = new MathematicalText("i"); IMathElement superscript = new MathematicalText("j"); MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript); IMathElement sub = subsuperscript.getSubscript();
getSubscript in interface IMathRightSubSuperscriptElementpublic final IMathElement getSuperscript()
Superscript argument
Example:IMathElement baseElement = new MathematicalText("X"); IMathElement subscript = new MathematicalText("i"); IMathElement superscript = new MathematicalText("j"); MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript); IMathElement sup = subsuperscript.getSuperscript();
getSuperscript in interface IMathRightSubSuperscriptElementpublic final boolean getAlignScripts()
Specifies the alignment of subscript/superscript. When true, subscript and superscript are aligned horizontally to each other. When false, they are kerned to the shape of the base. Default value is false.
Example:IMathElement baseElement = new MathematicalText("X"); IMathElement subscript = new MathematicalText("i"); IMathElement superscript = new MathematicalText("j"); MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript); subsuperscript.setAlignScripts(true);
getAlignScripts in interface IMathRightSubSuperscriptElementpublic final void setAlignScripts(boolean value)
Specifies the alignment of subscript/superscript. When true, subscript and superscript are aligned horizontally to each other. When false, they are kerned to the shape of the base. Default value is false.
Example:IMathElement baseElement = new MathematicalText("X"); IMathElement subscript = new MathematicalText("i"); IMathElement superscript = new MathematicalText("j"); MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript); subsuperscript.setAlignScripts(true);
setAlignScripts in interface IMathRightSubSuperscriptElementpublic final IMathElement[] getChildren()
Get children elements
getChildren in interface IMathElementgetChildren in class MathElementBaseIMathElementCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.