| Coordinates.java |
1 /*
2 * Coordinates.java
3 *
4 * Copyright (c) 1998-2004, The University of Sheffield.
5 *
6 * This file is part of GATE (see http://gate.ac.uk/), and is free
7 * software, licenced under the GNU Library General Public License,
8 * Version 2, June 1991 (in the distribution as file licence.html,
9 * and also available at http://gate.ac.uk/gate/licence.html).
10 *
11 * Kalina Bontcheva, 20/09/2000
12 *
13 * $Id: Coordinates.java,v 1.6 2004/07/21 17:10:09 akshay Exp $
14 */
15 package gate.util;
16
17 public class Coordinates {
18
19 /** Debug flag */
20 private static final boolean DEBUG = false;
21
22 int x1, x2, y1, y2;
23
24 public Coordinates(int x1, int y1, int x2, int y2) {
25 this.x1 = x1;
26 this.y1 = y1;
27 this.x2 = x2;
28 this.y2 = y2;
29 }
30
31 public int getX1() {
32 return x1;
33 }
34
35 public int getY1() {
36 return y1;
37 }
38
39 public int getX2() {
40 return x2;
41 }
42
43 public int getY2() {
44 return y2;
45 }
46
47 public void setX1( int x) {
48 x1 = x;
49 }
50
51 public void setX2( int x) {
52 x2 = x;
53 }
54
55 public void setY1( int y) {
56 y1 = y;
57 }
58
59 public void setY2( int y) {
60 y2 = y;
61 }
62
63
64 public String toString() {
65 return "x1=" + x1 + ";y1=" + y1 + ";x2=" + x2 + ";y2=" + y2;
66 }
67
68 } // class Coordinates
69