public interface IMathRightSubSuperscriptElement extends IMathElement
Specifies the Sub-Superscript object, which consists of a base and a subscript and superscript placed to the right of the base.
Example:IMathRightSubSuperscriptElement subsuperscript = new MathematicalText("N").setSubSuperscriptOnTheRight("i", "j");
Modifier and Type | Method and Description |
---|---|
boolean |
getAlignScripts()
Specifies the alignment of subscript/superscript.
|
IMathElement |
getBase()
Base argument
|
IMathElement |
getSubscript()
Subscript argument
|
IMathElement |
getSuperscript()
Superscript argument
|
void |
setAlignScripts(boolean value)
Specifies the alignment of subscript/superscript.
|
accent, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, divide, divide, divide, divide, enclose, enclose, function, function, getChildren, 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, underbar
IMathElement getBase()
Base 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 baseElem = subsuperscript.getBase();
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();
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();
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);
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);