Package org.apache.poi.xwpf.usermodel
Class TextSegment
java.lang.Object
org.apache.poi.xwpf.usermodel.TextSegment
saves the begin and end position of a text in a Paragraph
-
Constructor Summary
ConstructorsConstructorDescriptionTextSegment(int beginRun, int endRun, int beginText, int endText, int beginChar, int endChar) TextSegment(PositionInParagraph beginPos, PositionInParagraph endPos) -
Method Summary
Modifier and TypeMethodDescriptionintintintintintintvoidsetBeginChar(int beginChar) voidsetBeginRun(int beginRun) voidsetBeginText(int beginText) voidsetEndChar(int endChar) voidsetEndRun(int endRun) voidsetEndText(int endText)
-
Constructor Details
-
TextSegment
public TextSegment() -
TextSegment
public TextSegment(int beginRun, int endRun, int beginText, int endText, int beginChar, int endChar) -
TextSegment
-
-
Method Details
-
getBeginPos
-
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)
-