Coordinates.java

00001 package edu.stanford.hci.r3.units.coordinates;
00002 
00003 import edu.stanford.hci.r3.units.Units;
00004 
00016 public class Coordinates {
00017 
00021         protected Units x;
00022 
00026         protected Units y;
00027 
00032         public Coordinates(Units xCoord, Units yCoord) {
00033                 x = xCoord;
00034                 y = yCoord;
00035         }
00036 
00040         public Units getX() {
00041                 return x;
00042         }
00043 
00047         public Units getY() {
00048                 return y;
00049         }
00050 
00056         public void setX(Units xCoord) {
00057                 x = xCoord;
00058         }
00059 
00065         public void setY(Units yCoord) {
00066                 y = yCoord;
00067         }
00068 
00072         public String toString() {
00073                 return "Coordinates: x=[" + x.toString() + "]  y=[" + y.toString() + "]";
00074         }
00075 }

Generated on Sat Apr 14 18:21:33 2007 for R3 Paper Toolkit by  doxygen 1.4.7