Class PhoneticRun
java.lang.Object
com.independentsoft.office.spreadsheet.PhoneticRun
The Class PhoneticRun. Represents a phonetic text run (rPh element) of a shared string item,
giving the pronunciation (e.g. Japanese furigana) of a range of characters in the base text.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new phonetic run.PhoneticRun(int startIndex, int endIndex, String text)Instantiates a new phonetic run. -
Method Summary
Modifier and TypeMethodDescriptionclone()intGets the zero-based index of the character following the last base text character the run applies to (eb attribute).intGets the zero-based index of the first base text character the run applies to (sb attribute).getText()Gets the phonetic text.voidsetEndIndex(int endIndex)Sets the zero-based index of the character following the last base text character the run applies to (eb attribute).voidsetStartIndex(int startIndex)Sets the zero-based index of the first base text character the run applies to (sb attribute).voidSets the phonetic text.toString()
-
Constructor Details
-
PhoneticRun
public PhoneticRun()Instantiates a new phonetic run. -
PhoneticRun
Instantiates a new phonetic run.- Parameters:
startIndex- Zero-based index of the first base text character the run applies to.endIndex- Zero-based index of the character following the last base text character the run applies to.text- The phonetic text.
-
-
Method Details
-
clone
-
toString
-
getStartIndex
public int getStartIndex()Gets the zero-based index of the first base text character the run applies to (sb attribute).- Returns:
- the start index
-
setStartIndex
public void setStartIndex(int startIndex)Sets the zero-based index of the first base text character the run applies to (sb attribute).- Parameters:
startIndex- the new start index
-
getEndIndex
public int getEndIndex()Gets the zero-based index of the character following the last base text character the run applies to (eb attribute).- Returns:
- the end index
-
setEndIndex
public void setEndIndex(int endIndex)Sets the zero-based index of the character following the last base text character the run applies to (eb attribute).- Parameters:
endIndex- the new end index
-
getText
Gets the phonetic text.- Returns:
- the text
-
setText
Sets the phonetic text.- Parameters:
text- the new text
-