Lines Matching defs:offset

161         chars.offset = where;
169 * @param offset the offset to create a position for >= 0
173 public Position createPosition(int offset) throws BadLocationException {
179 return new StickyPosition(offset);
186 * @param offset offset into the array to start the replace
189 * @param replOffset offset into the replacement array
193 void replace(int offset, int length,
196 int src = offset + length;
203 System.arraycopy(data, 0, newData, 0, offset);
204 System.arraycopy(replArray, replOffset, newData, offset, replLength);
210 System.arraycopy(replArray, replOffset, data, offset, replLength);
221 synchronized void updateMarksForInsert(int offset, int length) {
222 if (offset == 0) {
225 offset = 1;
235 } else if (mark.offset >= offset) {
236 mark.offset += length;
241 synchronized void updateMarksForRemove(int offset, int length) {
250 } else if (mark.offset >= (offset + length)) {
251 mark.offset -= length;
252 } else if (mark.offset >= offset) {
253 mark.offset = offset;
261 * <code>offset</code> to <code>offset</code> + <code>length</code>.
269 * @param offset the starting offset >= 0
273 protected Vector getPositionsInRange(Vector v, int offset,
276 int end = offset + length;
285 } else if(mark.offset >= offset && mark.offset <= end)
326 PosRec(int offset) {
327 this.offset = offset;
330 int offset;
342 StickyPosition(int offset) {
343 rec = new PosRec(offset);
348 return rec.offset;
371 this.undoLocation = rec.offset;
375 * Resets the location of the Position to the offset when the
379 rec.offset = undoLocation;
384 /** Position to reset offset. */
392 protected InsertUndo(int offset, int length) {
394 this.offset = offset;
404 posRefs = getPositionsInRange(null, offset, length);
405 string = getString(offset, length);
406 remove(offset, length);
417 insertString(offset, string);
431 protected int offset;
447 protected RemoveUndo(int offset, String string) {
449 this.offset = offset;
453 posRefs = getPositionsInRange(null, offset, length);
460 insertString(offset, string);
477 string = getString(offset, length);
480 posRefs = getPositionsInRange(null, offset, length);
481 remove(offset, length);
489 protected int offset;