// Copyright 1996, Marimba Inc. All Rights Reserved.


// Confidential and Proprietary Information of Marimba, Inc.


// @(#)Mark.java, 1.3, 12/15/96





package marimba.text;





/**


 * This is position in a text object, which is automatically adjusted


 * when insertions and deletions occur in the buffer.


 *


 * @author	Jonathan Payne


 * @version 1.3, 12/15/96


 */


public class Mark {


    Mark next;


    TextView view;


    int pos;





    Mark(TextView view, int pos) {


	this.view = view;


	this.pos = pos;


    }





    public void gotoPosition() {


	TextView v = view;





	if (v != null)


	    v.setCaret(pos);


    }


}


