Class MathRun
java.lang.Object
com.independentsoft.office.word.math.MathRun
- All Implemented Interfaces:
IContentElement,IRunTrackChangeContent,IMathElement,IMathMathElement
The Class MathRun.
-
Constructor Summary
ConstructorsConstructorDescriptionMathRun()Instantiates a new math run.MathRun(InternalXMLStreamReader reader)Instantiates a new math run.Instantiates a new math run. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CommentReference commentReference)Adds the.voidadd(DeletedText deletedText)Adds the.voidadd(EndnoteReference endnoteReference)Adds the.voidadd(FootnoteReference footnoteReference)Adds the.voidadd(IRunContent contentElement)Adds the.voidAdds the absolute position tab.voidaddAbsolutePositionTab(AbsolutePositionTabAlignment alignment)Adds the absolute position tab.voidaddAbsolutePositionTab(AbsolutePositionTabAlignment alignment, AbsolutePositionTabPositioningBase relativeTo)Adds the absolute position tab.voidaddAbsolutePositionTab(AbsolutePositionTabAlignment alignment, AbsolutePositionTabPositioningBase relativeTo, AbsolutePositionTabLeader leader)Adds the absolute position tab.voidAdds the annotation reference.voidaddBreak()Adds the break.voidaddBreak(BreakClear clear)Adds the break.voidAdds the break.voidaddBreak(BreakType type, BreakClear clear)Adds the break.voidAdds the carriage return.voidAdds the continuation separator.voidaddDeletedText(String text)Adds the deleted text.voidAdds the endnote reference mark.voidAdds the footnote endnote separator.voidAdds the footnote reference mark.voidAdds the last rendered page break.voidaddMathText(MathText text)Adds the math text.voidaddMathText(String text)Adds the math text.voidaddMathText(String text, boolean preserveSpace)Adds the math text.voidAdds the non breaking hyphen.voidAdds the page number block.voidAdds the soft hyphen.voidAdds the symbol.voidaddTab()Adds the tab.voidaddTab(int position)Adds the tab.voidAdds the tab.voidaddTab(int position, TabType type, TabLeaderCharacter leader)Adds the tab.voidAdds the text.voidAdds the text.clone()getBold()Gets the bold.Gets the border.Gets the capital letters.getColor()Gets the color.Gets the complex script bold.intGets the complex script font size.Gets the complex script italic.Gets the content.Gets the deletion revision id.Gets the double strikethrough.Gets the east asian layout.Gets the emboss.Gets the emphasis mark.intGets the font kern.getFonts()Gets the fonts.intGets the font size.Gets the hidden paragraph mark.Gets the hidden text.Gets the highlight color.Gets the imprint.Gets the italic.Gets the language.Gets the manual width.getMath()Gets the math.Gets the no proof.Gets the outline.intGets the position.Gets the properties revision id.Gets the revision.Gets the revision id.Gets the right to left.Gets the shading.Gets the shadow.Gets the single strikethrough.Gets the small caps.Gets the snap to grid.intGets the spacing.Gets the style name.Gets the text effect.intGets the text scale.Gets the underline.Gets the use complex script formating.Gets the vertical alignment.Gets the web hidden text.voidsetBold(ExtendedBoolean bold)Sets the bold.voidSets the border.voidsetCapitalLetters(ExtendedBoolean capitalLetters)Sets the capital letters.voidsetColor(RunContentColor color)Sets the color.voidsetComplexScriptBold(ExtendedBoolean complexScriptBold)Sets the complex script bold.voidsetComplexScriptFontSize(int complexScriptFontSize)Sets the complex script font size.voidsetComplexScriptItalic(ExtendedBoolean complexScriptItalic)Sets the complex script italic.voidsetDeletionRevisionID(String deletionRevisionID)Sets the deletion revision id.voidsetDoubleStrikethrough(ExtendedBoolean doubleStrikethrough)Sets the double strikethrough.voidsetEastAsianLayout(EastAsianLayout eastAsianLayout)Sets the east asian layout.voidsetEmboss(ExtendedBoolean emboss)Sets the emboss.voidsetEmphasisMark(EmphasisMarkType emphasisMark)Sets the emphasis mark.voidsetFontKern(int fontKern)Sets the font kern.voidSets the fonts.voidsetFontSize(int fontSize)Sets the font size.voidsetHiddenParagraphMark(ExtendedBoolean hiddenParagraphMark)Sets the hidden paragraph mark.voidsetHiddenText(ExtendedBoolean hiddenText)Sets the hidden text.voidsetHighlightColor(HighlightColor highlightColor)Sets the highlight color.voidsetImprint(ExtendedBoolean imprint)Sets the imprint.voidsetItalic(ExtendedBoolean italic)Sets the italic.voidsetLanguage(Language language)Sets the language.voidsetManualWidth(ManualRunWidth manualWidth)Sets the manual width.voidsetMath(ExtendedBoolean math)Sets the math.voidsetNoProof(ExtendedBoolean noProof)Sets the no proof.voidsetOutline(ExtendedBoolean outline)Sets the outline.voidsetPosition(int position)Sets the position.voidsetPropertiesRevisionID(String propertiesRevisionID)Sets the properties revision id.voidsetRevision(RunPropertiesRevision revision)Sets the revision.voidsetRevisionID(String revisionID)Sets the revision id.voidsetRightToLeft(ExtendedBoolean rightToLeft)Sets the right to left.voidsetShading(Shading shading)Sets the shading.voidsetShadow(ExtendedBoolean shadow)Sets the shadow.voidsetSingleStrikethrough(ExtendedBoolean singleStrikethrough)Sets the single strikethrough.voidsetSmallCaps(ExtendedBoolean smallCaps)Sets the small caps.voidsetSnapToGrid(ExtendedBoolean snapToGrid)Sets the snap to grid.voidsetSpacing(int spacing)Sets the spacing.voidsetStyleName(String styleName)Sets the style name.voidsetTextEffect(TextEffect textEffect)Sets the text effect.voidsetTextScale(int textScale)Sets the text scale.voidsetUnderline(Underline underline)Sets the underline.voidsetUseComplexScriptFormating(ExtendedBoolean useComplexScriptFormating)Sets the use complex script formating.voidsetVerticalAlignment(VerticalAlignment verticalAlignment)Sets the vertical alignment.voidsetWebHiddenText(ExtendedBoolean webHiddenText)Sets the web hidden text.toString()
-
Constructor Details
-
MathRun
public MathRun()Instantiates a new math run. -
MathRun
Instantiates a new math run.- Parameters:
text- the text
-
MathRun
Instantiates a new math run.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
addMathText
Adds the math text.- Parameters:
text- the text
-
addMathText
Adds the math text.- Parameters:
text- the text
-
addMathText
Adds the math text.- Parameters:
text- the textpreserveSpace- the preserve space
-
addText
Adds the text.- Parameters:
text- the text
-
addText
Adds the text.- Parameters:
text- the textpreserveSpace- the preserve space
-
addDeletedText
Adds the deleted text.- Parameters:
text- the text
-
add
Adds the.- Parameters:
deletedText- the deleted text
-
addBreak
public void addBreak()Adds the break. -
addBreak
Adds the break.- Parameters:
type- the type
-
addBreak
Adds the break.- Parameters:
clear- the clear
-
addBreak
Adds the break.- Parameters:
type- the typeclear- the clear
-
add
Adds the.- Parameters:
commentReference- the comment reference
-
add
Adds the.- Parameters:
footnoteReference- the footnote reference
-
add
Adds the.- Parameters:
endnoteReference- the endnote reference
-
addCarriageReturn
public void addCarriageReturn()Adds the carriage return. -
addPageNumberBlock
public void addPageNumberBlock()Adds the page number block. -
addNonBreakingHyphen
public void addNonBreakingHyphen()Adds the non breaking hyphen. -
addLastRenderedPageBreak
public void addLastRenderedPageBreak()Adds the last rendered page break. -
addSoftHyphen
public void addSoftHyphen()Adds the soft hyphen. -
addContinuationSeparator
public void addContinuationSeparator()Adds the continuation separator. -
addFootnoteEndnoteSeparator
public void addFootnoteEndnoteSeparator()Adds the footnote endnote separator. -
addAnnotationReference
public void addAnnotationReference()Adds the annotation reference. -
addFootnoteReferenceMark
public void addFootnoteReferenceMark()Adds the footnote reference mark. -
addEndnoteReferenceMark
public void addEndnoteReferenceMark()Adds the endnote reference mark. -
addAbsolutePositionTab
public void addAbsolutePositionTab()Adds the absolute position tab. -
addAbsolutePositionTab
Adds the absolute position tab.- Parameters:
alignment- the alignment
-
addAbsolutePositionTab
public void addAbsolutePositionTab(AbsolutePositionTabAlignment alignment, AbsolutePositionTabPositioningBase relativeTo)Adds the absolute position tab.- Parameters:
alignment- the alignmentrelativeTo- the relative to
-
addAbsolutePositionTab
public void addAbsolutePositionTab(AbsolutePositionTabAlignment alignment, AbsolutePositionTabPositioningBase relativeTo, AbsolutePositionTabLeader leader)Adds the absolute position tab.- Parameters:
alignment- the alignmentrelativeTo- the relative toleader- the leader
-
addSymbol
Adds the symbol.- Parameters:
character- the characterfont- the font
-
addTab
public void addTab()Adds the tab. -
addTab
public void addTab(int position)Adds the tab.- Parameters:
position- the position
-
addTab
Adds the tab.- Parameters:
position- the positiontype- the type
-
addTab
Adds the tab.- Parameters:
position- the positiontype- the typeleader- the leader
-
add
Adds the.- Parameters:
contentElement- the content element
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIMathElement- Specified by:
clonein interfaceIMathMathElement- Specified by:
clonein interfaceIRunTrackChangeContent- Overrides:
clonein classObject
-
toString
-
getContent
Gets the content.- Returns:
- the content
-
getDeletionRevisionID
Gets the deletion revision id.- Returns:
- the deletion revision id
-
setDeletionRevisionID
Sets the deletion revision id.- Parameters:
deletionRevisionID- the new deletion revision id
-
getRevisionID
Gets the revision id.- Returns:
- the revision id
-
setRevisionID
Sets the revision id.- Parameters:
revisionID- the new revision id
-
getPropertiesRevisionID
Gets the properties revision id.- Returns:
- the properties revision id
-
setPropertiesRevisionID
Sets the properties revision id.- Parameters:
propertiesRevisionID- the new properties revision id
-
getBold
Gets the bold.- Returns:
- the bold
-
setBold
Sets the bold.- Parameters:
bold- the new bold
-
getComplexScriptBold
Gets the complex script bold.- Returns:
- the complex script bold
-
setComplexScriptBold
Sets the complex script bold.- Parameters:
complexScriptBold- the new complex script bold
-
getItalic
Gets the italic.- Returns:
- the italic
-
setItalic
Sets the italic.- Parameters:
italic- the new italic
-
getSnapToGrid
Gets the snap to grid.- Returns:
- the snap to grid
-
setSnapToGrid
Sets the snap to grid.- Parameters:
snapToGrid- the new snap to grid
-
getSmallCaps
Gets the small caps.- Returns:
- the small caps
-
setSmallCaps
Sets the small caps.- Parameters:
smallCaps- the new small caps
-
getShadow
Gets the shadow.- Returns:
- the shadow
-
setShadow
Sets the shadow.- Parameters:
shadow- the new shadow
-
getRightToLeft
Gets the right to left.- Returns:
- the right to left
-
setRightToLeft
Sets the right to left.- Parameters:
rightToLeft- the new right to left
-
getImprint
Gets the imprint.- Returns:
- the imprint
-
setImprint
Sets the imprint.- Parameters:
imprint- the new imprint
-
getOutline
Gets the outline.- Returns:
- the outline
-
setOutline
Sets the outline.- Parameters:
outline- the new outline
-
getMath
Gets the math.- Returns:
- the math
-
setMath
Sets the math.- Parameters:
math- the new math
-
getNoProof
Gets the no proof.- Returns:
- the no proof
-
setNoProof
Sets the no proof.- Parameters:
noProof- the new no proof
-
getComplexScriptItalic
Gets the complex script italic.- Returns:
- the complex script italic
-
setComplexScriptItalic
Sets the complex script italic.- Parameters:
complexScriptItalic- the new complex script italic
-
getBorder
Gets the border.- Returns:
- the border
-
setBorder
Sets the border.- Parameters:
border- the new border
-
getCapitalLetters
Gets the capital letters.- Returns:
- the capital letters
-
setCapitalLetters
Sets the capital letters.- Parameters:
capitalLetters- the new capital letters
-
getColor
Gets the color.- Returns:
- the color
-
setColor
Sets the color.- Parameters:
color- the new color
-
getUseComplexScriptFormating
Gets the use complex script formating.- Returns:
- the use complex script formating
-
setUseComplexScriptFormating
Sets the use complex script formating.- Parameters:
useComplexScriptFormating- the new use complex script formating
-
getHiddenText
Gets the hidden text.- Returns:
- the hidden text
-
setHiddenText
Sets the hidden text.- Parameters:
hiddenText- the new hidden text
-
getWebHiddenText
Gets the web hidden text.- Returns:
- the web hidden text
-
setWebHiddenText
Sets the web hidden text.- Parameters:
webHiddenText- the new web hidden text
-
getHiddenParagraphMark
Gets the hidden paragraph mark.- Returns:
- the hidden paragraph mark
-
setHiddenParagraphMark
Sets the hidden paragraph mark.- Parameters:
hiddenParagraphMark- the new hidden paragraph mark
-
getDoubleStrikethrough
Gets the double strikethrough.- Returns:
- the double strikethrough
-
setDoubleStrikethrough
Sets the double strikethrough.- Parameters:
doubleStrikethrough- the new double strikethrough
-
getSingleStrikethrough
Gets the single strikethrough.- Returns:
- the single strikethrough
-
setSingleStrikethrough
Sets the single strikethrough.- Parameters:
singleStrikethrough- the new single strikethrough
-
getEmboss
Gets the emboss.- Returns:
- the emboss
-
setEmboss
Sets the emboss.- Parameters:
emboss- the new emboss
-
getFontSize
public int getFontSize()Gets the font size.- Returns:
- the font size
-
setFontSize
public void setFontSize(int fontSize)Sets the font size.- Parameters:
fontSize- the new font size
-
getTextScale
public int getTextScale()Gets the text scale.- Returns:
- the text scale
-
setTextScale
public void setTextScale(int textScale)Sets the text scale.- Parameters:
textScale- the new text scale
-
getStyleName
Gets the style name.- Returns:
- the style name
-
setStyleName
Sets the style name.- Parameters:
styleName- the new style name
-
getPosition
public int getPosition()Gets the position.- Returns:
- the position
-
setPosition
public void setPosition(int position)Sets the position.- Parameters:
position- the new position
-
getComplexScriptFontSize
public int getComplexScriptFontSize()Gets the complex script font size.- Returns:
- the complex script font size
-
setComplexScriptFontSize
public void setComplexScriptFontSize(int complexScriptFontSize)Sets the complex script font size.- Parameters:
complexScriptFontSize- the new complex script font size
-
getUnderline
Gets the underline.- Returns:
- the underline
-
setUnderline
Sets the underline.- Parameters:
underline- the new underline
-
getVerticalAlignment
Gets the vertical alignment.- Returns:
- the vertical alignment
-
setVerticalAlignment
Sets the vertical alignment.- Parameters:
verticalAlignment- the new vertical alignment
-
getEastAsianLayout
Gets the east asian layout.- Returns:
- the east asian layout
-
setEastAsianLayout
Sets the east asian layout.- Parameters:
eastAsianLayout- the new east asian layout
-
getTextEffect
Gets the text effect.- Returns:
- the text effect
-
setTextEffect
Sets the text effect.- Parameters:
textEffect- the new text effect
-
getEmphasisMark
Gets the emphasis mark.- Returns:
- the emphasis mark
-
setEmphasisMark
Sets the emphasis mark.- Parameters:
emphasisMark- the new emphasis mark
-
getManualWidth
Gets the manual width.- Returns:
- the manual width
-
setManualWidth
Sets the manual width.- Parameters:
manualWidth- the new manual width
-
getHighlightColor
Gets the highlight color.- Returns:
- the highlight color
-
setHighlightColor
Sets the highlight color.- Parameters:
highlightColor- the new highlight color
-
getFontKern
public int getFontKern()Gets the font kern.- Returns:
- the font kern
-
setFontKern
public void setFontKern(int fontKern)Sets the font kern.- Parameters:
fontKern- the new font kern
-
getLanguage
Gets the language.- Returns:
- the language
-
setLanguage
Sets the language.- Parameters:
language- the new language
-
getFonts
Gets the fonts.- Returns:
- the fonts
-
setFonts
Sets the fonts.- Parameters:
fonts- the new fonts
-
getSpacing
public int getSpacing()Gets the spacing.- Returns:
- the spacing
-
setSpacing
public void setSpacing(int spacing)Sets the spacing.- Parameters:
spacing- the new spacing
-
getShading
Gets the shading.- Returns:
- the shading
-
setShading
Sets the shading.- Parameters:
shading- the new shading
-
getRevision
Gets the revision.- Returns:
- the revision
-
setRevision
Sets the revision.- Parameters:
revision- the new revision
-