|
||||||||||
| 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()
BoardReturn the name of the board.
getName in interface Boardpublic Zone getZone(java.lang.String code)
BoardGet the zone with given code, or null if there is no such zone.
getZone in interface Boardpublic Zone getZone(Location loc)
BoardGet the zone containing given location on the board, or null if there is no such zone.
getZone in interface Boardpublic double getSize()
BoardReturns 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()
BoardGet the collection of zones for this board. The returned collection contains Zone objects.
getZones in interface Boardpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||