Lines Matching refs:index

124 	protected java.util.Locale getLocale(int index) {  in getLocale()  argument
127 unoObject.getCharacterAttributes(index, localeAttributeList); in getLocale()
154 public String getAfterIndex(int part, int index) { in getAfterIndex() argument
159 return s.substring(index+1, index+2); in getAfterIndex()
166 BreakIterator words = BreakIterator.getWordInstance(getLocale(index)); in getAfterIndex()
168 int start = words.following(index); in getAfterIndex()
186 BreakIterator.getSentenceInstance(getLocale(index)); in getAfterIndex()
188 int start = sentence.following(index); in getAfterIndex()
204 TextSegment ts = unoObject.getTextBehindIndex(index, AccessibleTextType.LINE); in getAfterIndex()
208 if (index > 0 && getCharCount() == index) { in getAfterIndex()
209 return getAfterIndex(part, index - 1); in getAfterIndex()
217 TextSegment ts = unoObject.getTextBehindIndex(index, AccessibleTextType.ATTRIBUTE_RUN); in getAfterIndex()
241 int index = unoObject.getSelectionStart(); in getSelectionStart() local
243 if (index == -1) { in getSelectionStart()
244 index = getCaretPosition(); in getSelectionStart()
247 return index; in getSelectionStart()
450 public javax.swing.text.AttributeSet getCharacterAttribute(int index) { in getCharacterAttribute() argument
452 com.sun.star.beans.PropertyValue[] propertyValues = unoObject.getCharacterAttributes(index, in getCharacterAttribute()
464 if ((index > 0) && (getCharCount() == index)) { in getCharacterAttribute()
465 return getCharacterAttribute(index - 1); in getCharacterAttribute()
483 int index = unoObject.getSelectionEnd(); in getSelectionEnd() local
485 if (index == -1) { in getSelectionEnd()
486 index = getCaretPosition(); in getSelectionEnd()
489 return index; in getSelectionEnd()
501 public java.lang.String getBeforeIndex(int part, int index) { in getBeforeIndex() argument
506 return s.substring(index-1, index); in getBeforeIndex()
513 BreakIterator words = BreakIterator.getWordInstance(getLocale(index)); in getBeforeIndex()
515 int end = words.following(index); in getBeforeIndex()
531 BreakIterator.getSentenceInstance(getLocale(index)); in getBeforeIndex()
533 int end = sentence.following(index); in getBeforeIndex()
547 TextSegment ts = unoObject.getTextBeforeIndex(index, AccessibleTextType.LINE); in getBeforeIndex()
551 if (index > 0 && getCharCount() == index) { in getBeforeIndex()
552 return getBeforeIndex(part, index - 1); in getBeforeIndex()
560 TextSegment ts = unoObject.getTextBeforeIndex(index, AccessibleTextType.ATTRIBUTE_RUN); in getBeforeIndex()
579 public java.lang.String getAtIndex(int part, int index) { in getAtIndex() argument
584 return s.substring(index, index + 1); in getAtIndex()
591 BreakIterator words = BreakIterator.getWordInstance(getLocale(index)); in getAtIndex()
593 int end = words.following(index); in getAtIndex()
604 BreakIterator.getSentenceInstance(getLocale(index)); in getAtIndex()
606 int end = sentence.following(index); in getAtIndex()
615 TextSegment ts = unoObject.getTextAtIndex(index, AccessibleTextType.LINE); in getAtIndex()
619 if (index > 0 && getCharCount() == index) { in getAtIndex()
620 return getAtIndex(part, index - 1); in getAtIndex()
628 TextSegment ts = unoObject.getTextAtIndex(index, AccessibleTextType.ATTRIBUTE_RUN); in getAtIndex()
662 public java.awt.Rectangle getCharacterBounds(int index) { in getCharacterBounds() argument
664 Rectangle unoRect = unoObject.getCharacterBounds(index); in getCharacterBounds()
667 if ((index > 0) && (getCharCount() == index)) { in getCharacterBounds()
668 return getCharacterBounds(index - 1); in getCharacterBounds()