[githib-110] rename text segment class. This closes #110

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1832354 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2018-05-27 20:59:52 +00:00
parent 1caafe0431
commit 6393beaa8c
1 changed files with 4 additions and 4 deletions

View File

@ -20,23 +20,23 @@ package org.apache.poi.xwpf.usermodel;
/**
* saves the begin and end position of a text in a Paragraph
*/
public class TextSegement {
public class TextSegment {
private PositionInParagraph beginPos;
private PositionInParagraph endPos;
public TextSegement() {
public TextSegment() {
this.beginPos = new PositionInParagraph();
this.endPos = new PositionInParagraph();
}
public TextSegement(int beginRun, int endRun, int beginText, int endText, int beginChar, int endChar) {
public TextSegment(int beginRun, int endRun, int beginText, int endText, int beginChar, int endChar) {
PositionInParagraph beginPos = new PositionInParagraph(beginRun, beginText, beginChar);
PositionInParagraph endPos = new PositionInParagraph(endRun, endText, endChar);
this.beginPos = beginPos;
this.endPos = endPos;
}
public TextSegement(PositionInParagraph beginPos, PositionInParagraph endPos) {
public TextSegment(PositionInParagraph beginPos, PositionInParagraph endPos) {
this.beginPos = beginPos;
this.endPos = endPos;
}