public final class MathematicalText extends MathElementBase implements IMathematicalText
Mathematical text
Example:MathematicalText mathText = new MathematicalText("x+y");
Constructor and Description |
---|
MathematicalText()
Default constructor (create String.Empty Value)
|
MathematicalText(char mathSymbol)
Create MathText with single symbol
|
MathematicalText(java.lang.String mathText)
Create MathematicalText from text
|
MathematicalText(java.lang.String mathText,
IPortionFormat portionFormat)
Create MathematicalText from text and format settings
|
Modifier and Type | Method and Description |
---|---|
IPortionFormat |
getFormat()
Text formatting properties
|
java.lang.String |
getValue()
Text value
|
void |
setValue(java.lang.String value)
Text value
|
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
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 MathematicalText()
Default constructor (create String.Empty Value)
Example:MathematicalText mathText = new MathematicalText();
public MathematicalText(char mathSymbol)
Create MathText with single symbol
Example:MathematicalText mathText = new MathematicalText('$');
mathSymbol
- single symbolpublic MathematicalText(java.lang.String mathText)
Create MathematicalText from text
Example:MathematicalText mathText = new MathematicalText("x+y");
mathText
- text valuepublic MathematicalText(java.lang.String mathText, IPortionFormat portionFormat)
Create MathematicalText from text and format settings
Example:IPortionFormat format = new PortionFormat(); format.setFontHeight(12); MathematicalText mathText = new MathematicalText("x+y", format);
mathText
- text valueportionFormat
- text format settingspublic final java.lang.String getValue()
Text value
Example:IMathematicalText mathText = new MathematicalText("x+y"); String textValue = mathText.getValue();
getValue
in interface IMathematicalText
public final void setValue(java.lang.String value)
Text value
Example:IMathematicalText mathText = new MathematicalText("x+y"); String textValue = mathText.getValue();
setValue
in interface IMathematicalText
public final IPortionFormat getFormat()
Text formatting properties
Example:IMathematicalText mathText = new MathematicalText("x+y"); mathText.getFormat().setFontHeight(28);
getFormat
in interface IMathematicalText