2 * (C) Copyright IBM Corp. 1998-2004. All Rights Reserved.
\r
4 * The program is provided "as is" without any warranty express or
\r
5 * implied, including the warranty of non-infringement and the implied
\r
6 * warranties of merchantibility and fitness for a particular purpose.
\r
7 * IBM will not be liable for any damages suffered by you as a result
\r
8 * of using the Program. In no event will IBM be liable for any
\r
9 * special, indirect or consequential damages or lost profits even if
\r
10 * IBM has been advised of the possibility of their occurrence. IBM
\r
11 * will not be liable for any third party claims against you.
\r
13 package com.ibm.richtext.textpanel;
\r
16 * A <TT>TextRange</TT> represents a range of text bounded by a
\r
17 * start (inclusive), and a limit (exclusive). [start,limit)
\r
19 final class TextRange
\r
21 static final String COPYRIGHT =
\r
22 "(C) Copyright IBM Corp. 1998-1999 - All Rights Reserved";
\r
23 /** the start of the range */
\r
24 public int start = 0;
\r
25 /** the end of the range */
\r
26 public int limit = 0;
\r
29 * Create a text range from two ints.
\r
30 * @param start the start of the run
\r
31 * @param limit the end of the run
\r
33 public TextRange(int start, int limit)
\r
40 * Create a text range of 0, 0.
\r
42 public TextRange() {
\r
43 this.start = this.limit = 0;
\r