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