

Public Member Functions | |
| Dart () | |
| void | draw (java.awt.Graphics g) |
| void | setAzimuth (double azimuth) |
| void | setDartboard (Dartboard dartboard) |
| void | setDartboardSize (Dimension dartboardSize) |
| void | setElevation (double elevation) |
| void | setPosition (double elevation, double azimuth) |
| abstract void | setError (boolean error) |
Protected Member Functions | |
| int | calculateX (double elevation, double azimuth) |
| int | calculateY (double elevation, double azimuth) |
| void | drawDart (Graphics g) |
Protected Attributes | |
| double | azimuth = 0 |
| double | elevation = 0 |
| Dartboard | dartboard = null |
Private Member Functions | |
| void | recalculateCartesian (double elevation, double azimuth) |
Private Attributes | |
| Dimension | dartboardSize = new Dimension(0,0) |
| int | x = 0 |
| int | y = 0 |
| boolean | isDisplayed = false |
| dartboard::Dart::Dart | ( | ) | [inline] |
| int dartboard::Dart::calculateX | ( | double | elevation, | |
| double | azimuth | |||
| ) | [inline, protected] |
References dartboardSize, and x.
Referenced by dartboard::Grid::drawDart(), and recalculateCartesian().
| int dartboard::Dart::calculateY | ( | double | elevation, | |
| double | azimuth | |||
| ) | [inline, protected] |
References dartboardSize, and y.
Referenced by dartboard::Grid::drawDart(), and recalculateCartesian().
| void dartboard::Dart::draw | ( | java.awt.Graphics | g | ) | [inline] |
References drawDart(), isDisplayed, x, and y.
Referenced by dartboard::Dartboard::paintComponent().
| void dartboard::Dart::drawDart | ( | Graphics | g | ) | [inline, protected] |
Reimplemented in dartboard::Grid, dartboard::Legend, dartboard::Moon, dartboard::Sun, dartboard::Telescope, dartboard::TelescopeDestination, and dartboard::Wind.
Referenced by draw().
| void dartboard::Dart::recalculateCartesian | ( | double | elevation, | |
| double | azimuth | |||
| ) | [inline, private] |
References calculateX(), calculateY(), dartboard, dartboardSize, x, and y.
Referenced by setAzimuth(), setDartboardSize(), setElevation(), and setPosition().
| void dartboard::Dart::setAzimuth | ( | double | azimuth | ) | [inline] |
| void dartboard::Dart::setDartboard | ( | Dartboard | dartboard | ) | [inline] |
Referenced by dartboard::Dartboard::setDarts().
| void dartboard::Dart::setDartboardSize | ( | Dimension | dartboardSize | ) | [inline] |
References azimuth, elevation, and recalculateCartesian().
| void dartboard::Dart::setElevation | ( | double | elevation | ) | [inline] |
| abstract void dartboard::Dart::setError | ( | boolean | error | ) | [pure virtual] |
Called in case of error.
Each derived class will take the opportune action
| error |
Implemented in dartboard::Grid, dartboard::Legend, dartboard::Moon, dartboard::Sun, dartboard::Telescope, dartboard::TelescopeDestination, and dartboard::Wind.
Referenced by dartboard::DartboardPanel::setError().
| void dartboard::Dart::setPosition | ( | double | elevation, | |
| double | azimuth | |||
| ) | [inline] |
References isDisplayed, and recalculateCartesian().
Referenced by dartboard::Grid::Grid(), dartboard::Legend::Legend(), and dartboard::Wind::setDirection().
double dartboard::Dart::azimuth = 0 [protected] |
Dartboard dartboard::Dart::dartboard = null [protected] |
Dimension dartboard::Dart::dartboardSize = new Dimension(0,0) [private] |
Referenced by calculateX(), calculateY(), and recalculateCartesian().
double dartboard::Dart::elevation = 0 [protected] |
Referenced by setAzimuth(), and setDartboardSize().
boolean dartboard::Dart::isDisplayed = false [private] |
Referenced by draw(), setAzimuth(), setElevation(), and setPosition().
int dartboard::Dart::x = 0 [private] |
Referenced by calculateX(), draw(), and recalculateCartesian().
int dartboard::Dart::y = 0 [private] |
Referenced by calculateY(), draw(), and recalculateCartesian().
1.6.2