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, getControlCharacterProperties
accent, 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, underbar
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBase
accent, 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, underbar
public 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 IMathRightSubSuperscriptElement
public 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 IMathRightSubSuperscriptElement
public 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 IMathRightSubSuperscriptElement
public 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 IMathRightSubSuperscriptElement
public final IMathElement[] getChildren()
Get children elements
getChildren
in interface IMathElement
getChildren
in class MathElementBase
IMathElement