Lines Matching defs:startIndex

3185          * @param startIndex the starting index in the text
3190 public String getTextRange(int startIndex, int endIndex) {
3192 int p0 = Math.min(startIndex, endIndex);
3193 int p1 = Math.max(startIndex, endIndex);
3208 * @param startIndex the starting index in the text
3212 public void delete(int startIndex, int endIndex) {
3215 int p0 = Math.min(startIndex, endIndex);
3216 int p1 = Math.max(startIndex, endIndex);
3231 * @param startIndex the starting index in the text
3235 public void cut(int startIndex, int endIndex) {
3236 selectText(startIndex, endIndex);
3244 * @param startIndex the starting index in the text
3247 public void paste(int startIndex) {
3248 setCaretPosition(startIndex);
3256 * @param startIndex the starting index in the text
3261 public void replaceText(int startIndex, int endIndex, String s) {
3262 selectText(startIndex, endIndex);
3269 * @param startIndex the starting index in the text
3273 public void selectText(int startIndex, int endIndex) {
3274 JTextComponent.this.select(startIndex, endIndex);
3280 * @param startIndex the starting index in the text
3286 public void setAttributes(int startIndex, int endIndex,
3293 int offset = startIndex;
3294 int length = endIndex - startIndex;
3414 int startIndex =
3418 if (startIndex >= 0 && endIndex >= startIndex) {
3421 new AccessibleTextSequence(startIndex, endIndex,
3422 model.getText(startIndex,
3423 endIndex - startIndex + 1));
3424 } else if (direction == -1 && startIndex > 0) {
3427 startIndex - 1);
3428 startIndex =
3430 startIndex - 1);
3431 if (startIndex >= 0 && endIndex >= startIndex) {
3433 new AccessibleTextSequence(startIndex,
3435 model.getText(startIndex,
3436 endIndex - startIndex + 1));
3440 startIndex =
3446 if (startIndex >= 0 && endIndex >= startIndex) {
3448 new AccessibleTextSequence(startIndex,
3449 endIndex, model.getText(startIndex,
3450 endIndex - startIndex + 1));
3679 * @param startIndex the start index in the text
3686 public Rectangle getTextBounds(int startIndex, int endIndex) {
3687 if (startIndex < 0 || startIndex > model.getLength()-1 ||
3689 startIndex > endIndex) {
3707 Shape bounds = rootView.modelToView(startIndex,
4560 int startIndex = latestCommittedTextStart.getOffset();
4563 doc.getText(startIndex, endIndex - startIndex);
4564 doc.remove(startIndex, endIndex - startIndex);