01: /*
02: * Copyright (c) 2000, Jacob Smullyan.
03: *
04: * This is part of SkunkDAV, a WebDAV client. See http://skunkdav.sourceforge.net/
05: * for the latest version.
06: *
07: * SkunkDAV is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License as published
09: * by the Free Software Foundation; either version 2, or (at your option)
10: * any later version.
11: *
12: * SkunkDAV is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with SkunkDAV; see the file COPYING. If not, write to the Free
19: * Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20: * 02111-1307, USA.
21: */
22:
23: package org.skunk.dav.client.gui;
24:
25: public final class TextPoint {
26: private int x, y;
27: private Integer[] coords;
28:
29: public TextPoint(int x, int y) {
30: this .x = x;
31: this .y = y;
32: coords = new Integer[2];
33: coords[0] = new Integer(x + 1);
34: coords[1] = new Integer(y + 1);
35: }
36:
37: public final int getX() {
38: return this .x;
39: }
40:
41: public final int getY() {
42: return this .y;
43: }
44:
45: public final Integer[] getCoordinates() {
46: return coords;
47: }
48: }
|