Package org.apache.poi.xwpf.usermodel
Class TextSegment
- java.lang.Object
-
- org.apache.poi.xwpf.usermodel.TextSegment
-
public class TextSegment extends java.lang.Object
saves 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 int
getBeginChar()
PositionInParagraph
getBeginPos()
int
getBeginRun()
int
getBeginText()
int
getEndChar()
PositionInParagraph
getEndPos()
int
getEndRun()
int
getEndText()
void
setBeginChar(int beginChar)
void
setBeginRun(int beginRun)
void
setBeginText(int beginText)
void
setEndChar(int endChar)
void
setEndRun(int endRun)
void
setEndText(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)
-
-