edu.stanford.hci.r3.units.coordinates
Class Coordinates

java.lang.Object
  extended by edu.stanford.hci.r3.units.coordinates.Coordinates
Direct Known Subclasses:
BatchedPatternCoordinates, PercentageCoordinates, StreamedPatternCoordinates

public class Coordinates
extends java.lang.Object

A point in 2D space.

This software is distributed under the BSD License.


Field Summary
protected  Units x
          X Value of this coordinate.
protected  Units y
          Y Value of this coordinate.
 
Constructor Summary
Coordinates(Units xCoord, Units yCoord)
           
 
Method Summary
 Units getX()
           
 Units getY()
           
 void setX(Units xCoord)
          Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!
 void setY(Units yCoord)
          Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

protected Units x
X Value of this coordinate.


y

protected Units y
Y Value of this coordinate.

Constructor Detail

Coordinates

public Coordinates(Units xCoord,
                   Units yCoord)
Parameters:
x -
y -
Method Detail

getX

public Units getX()
Returns:

getY

public Units getY()
Returns:

setX

public void setX(Units xCoord)
Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!

Parameters:
xCoord -

setY

public void setY(Units yCoord)
Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!

Parameters:
yCoord -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

Copyright 2006 Stanford University