|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.hci.r3.units.coordinates.Coordinates
public class Coordinates
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 |
|---|
protected Units x
protected Units y
| Constructor Detail |
|---|
public Coordinates(Units xCoord,
Units yCoord)
x - y - | Method Detail |
|---|
public Units getX()
public Units getY()
public void setX(Units xCoord)
xCoord - public void setY(Units yCoord)
yCoord - public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
Copyright 2006 Stanford University | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||