KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > lib > terminalemulator > BExtent


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is Terminal Emulator.
16  * The Initial Developer of the Original Software is Sun Microsystems, Inc..
17  * Portions created by Sun Microsystems, Inc. are Copyright (C) 2001.
18  * All Rights Reserved.
19  *
20  * Contributor(s): Ivan Soleimanipour.
21  */

22
23 /*
24  * "BExtent.java"
25  * BExtent.java 1.5 01/07/26
26  */

27
28 package org.netbeans.lib.terminalemulator;
29
30 class BExtent {
31     public BCoord begin;
32     public BCoord end;
33
34     public BExtent(BCoord begin, BCoord end) {
35     this.begin = (BCoord) begin.clone();
36     this.end = (BCoord) end.clone();
37     }
38
39     public Extent toExtent(int bias) {
40     return new Extent(new Coord(begin, bias), new Coord(end, bias));
41     }
42
43     /**
44      * Override Object.toString
45      */

46     public String JavaDoc toString() {
47     return "BExtent[" + begin + " " + end + "]"; // NOI18N
48
}
49 }
50
Popular Tags