Lines Matching refs:offset

576      * @param offs the starting offset >= 0
633 * Deletes the region of text from <code>offset</code> to
634 * <code>offset + length</code>, and replaces it with <code>text</code>.
640 * @param offset index of child element
652 public void replace(int offset, int length, String text,
662 filter.replace(getFilterBypass(), offset, length, text,
667 remove(offset, length);
670 insertString(offset, text, attrs);
689 * @param offs the starting offset >= 0
761 * @param offset the starting offset >= 0
768 public String getText(int offset, int length) throws BadLocationException {
772 String str = data.getString(offset, length);
802 * @param offset the starting offset >= 0
808 public void getText(int offset, int length, Segment txt) throws BadLocationException {
812 data.getChars(offset, length, txt);
938 * @param pos the starting offset >= 0
1020 * This method assumes that every offset in the model is contained in
1221 bidiAnalyzer = new Bidi(seg.array, seg.offset, null, 0, seg.count,
1592 * @param offset the offset in the content >= 0
1594 * @exception BadLocationException for an invalid offset
1596 public Position createPosition(int offset) throws BadLocationException;
1608 * @param where offset into the sequence to make the insertion >= 0
1621 * @param where The offset into the sequence to make the
1646 * @param where the starting offset >= 0
2096 * Gets the starting offset in the model for the element.
2098 * @return the offset >= 0
2103 * Gets the ending offset in the model for the element.
2105 * @return the offset >= 0
2125 * Gets the child element index closest to the given model offset.
2127 * @param offset the offset >= 0
2130 public abstract int getElementIndex(int offset);
2271 * @param offset the starting offset >= 0
2275 public void replace(int offset, int length, Element[] elems) {
2277 int src = offset + length;
2284 System.arraycopy(children, 0, newChildren, 0, offset);
2285 System.arraycopy(elems, 0, newChildren, offset, elems.length);
2291 System.arraycopy(elems, 0, children, offset, elems.length);
2322 * Gets the starting offset in the model for the element.
2324 * @return the offset >= 0
2331 * Gets the ending offset in the model for the element.
2334 * @return the offset >= 0
2365 * Gets the child element index closest to the given model offset.
2367 * @param offset the offset >= 0
2370 public int getElementIndex(int offset) {
2381 if (offset >= getEndOffset()) {
2390 if ((offset >= p0) && (offset < p1)) {
2396 if (offset < p0) {
2408 if ((offset >= p0) && (offset < p1)) {
2413 } else if (offset < p0) {
2421 if (offset < p0) {
2497 * @param offs0 The start offset >= 0
2498 * @param offs1 The end offset >= offs0
2525 * Gets the starting offset in the model for the element.
2527 * @return the offset >= 0
2534 * Gets the ending offset in the model for the element.
2536 * @return the offset >= 0
2556 * Gets the child element index closest to the given model offset.
2558 * @param pos the offset >= 0
2713 * @param offs the offset into the document of the change >= 0
2720 offset = offs;
2881 * Returns the offset within the document of the start of the change.
2883 * @return the offset >= 0
2887 return offset;
2935 private int offset;
3101 public void remove(int offset, int length) throws
3103 handleRemove(offset, length);
3106 public void insertString(int offset, String string,
3109 handleInsertString(offset, string, attr);
3112 public void replace(int offset, int length, String text,
3114 handleRemove(offset, length);
3115 handleInsertString(offset, text, attrs);