|
||||||||||
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.StandardBoard
A standard darts board with 20 numbers, a doubles circle, a triples circle and a single and double bull.
Constructor Summary | |
StandardBoard()
|
Method Summary | |
java.lang.String |
getName()
Return the name of the board. |
double |
getSize()
Returns the size of the board (diameter). |
Zone |
getZone(int number,
int multiplier,
boolean inner)
Get the zone with given numer and multiplier. |
Zone |
getZone(Location loc)
Get the zone containing given location on the board, or null if there is no such zone. |
Zone |
getZone(java.lang.String code)
Get the zone with given code, or null if there is no such zone. |
java.util.Vector |
getZones()
Get the collection of zones for this board. |
java.lang.String |
toString()
|
Methods inherited from class org.dartra.standard.PersistentObject |
getId, setId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.dartra.framework.Persistent |
getId, setId |
Constructor Detail |
public StandardBoard()
Method Detail |
public java.lang.String getName()
Board
Return the name of the board.
getName
in interface Board
public Zone getZone(java.lang.String code)
Board
Get the zone with given code, or null if there is no such zone.
getZone
in interface Board
public Zone getZone(Location loc)
Board
Get the zone containing given location on the board, or null if there is no such zone.
getZone
in interface Board
public double getSize()
Board
Returns the size of the board (diameter).
getSize
in interface Board
public Zone getZone(int number, int multiplier, boolean inner)
Get the zone with given numer and multiplier. For singles, when inner is true, the inner single is returned, otherwise the outer single.
public java.util.Vector getZones()
Board
Get the collection of zones for this board. The returned collection contains Zone objects.
getZones
in interface Board
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |