|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dartra.standard.PersistentObject
org.dartra.standard.StandardLocation
Location on a standard darts board.
Constructor Summary | |
StandardLocation(double x,
double y)
|
Method Summary | |
double |
distanceTo(Location l)
Calculate the distance between this location and given location. |
boolean |
equals(java.lang.Object obj)
|
double |
getX()
Return the x coordinate of this location. |
double |
getY()
Return the y coordinate of this location. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class org.dartra.standard.PersistentObject |
getId, setId |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.dartra.framework.Persistent |
getId, setId |
Constructor Detail |
public StandardLocation(double x, double y)
Method Detail |
public double getX()
Location
Return the x coordinate of this location.
getX
in interface Location
public double getY()
Location
Return the y coordinate of this location.
getY
in interface Location
public double distanceTo(Location l)
Location
Calculate the distance between this location and given location.
distanceTo
in interface Location
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |