Package org.apache.poi.xwpf.usermodel
Class TextSegment
- java.lang.Object
-
- org.apache.poi.xwpf.usermodel.TextSegment
-
public class TextSegment extends java.lang.Objectsaves the begin and end position of a text in a Paragraph
-
-
Constructor Summary
Constructors Constructor Description TextSegment()TextSegment(int beginRun, int endRun, int beginText, int endText, int beginChar, int endChar)TextSegment(PositionInParagraph beginPos, PositionInParagraph endPos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBeginChar()PositionInParagraphgetBeginPos()intgetBeginRun()intgetBeginText()intgetEndChar()PositionInParagraphgetEndPos()intgetEndRun()intgetEndText()voidsetBeginChar(int beginChar)voidsetBeginRun(int beginRun)voidsetBeginText(int beginText)voidsetEndChar(int endChar)voidsetEndRun(int endRun)voidsetEndText(int endText)
-
-
-
Constructor Detail
-
TextSegment
public TextSegment()
-
TextSegment
public TextSegment(int beginRun, int endRun, int beginText, int endText, int beginChar, int endChar)
-
TextSegment
public TextSegment(PositionInParagraph beginPos, PositionInParagraph endPos)
-
-
Method Detail
-
getBeginPos
public PositionInParagraph getBeginPos()
-
getEndPos
public PositionInParagraph getEndPos()
-
getBeginRun
public int getBeginRun()
-
setBeginRun
public void setBeginRun(int beginRun)
-
getBeginText
public int getBeginText()
-
setBeginText
public void setBeginText(int beginText)
-
getBeginChar
public int getBeginChar()
-
setBeginChar
public void setBeginChar(int beginChar)
-
getEndRun
public int getEndRun()
-
setEndRun
public void setEndRun(int endRun)
-
getEndText
public int getEndText()
-
setEndText
public void setEndText(int endText)
-
getEndChar
public int getEndChar()
-
setEndChar
public void setEndChar(int endChar)
-
-