

Public Member Functions | |
| SinusTrendModel () | |
| PointIterator | getPointIterator () |
| double | getSpeed () |
| int | getUpdateRate () |
| int | getValuesPerUpdate () |
| boolean | hasNext () |
| Point | next () |
| void | setSpeed (double newSpeed) |
| void | setUpdateRate (int newUpdateRate) |
| void | setValuesPerUpdate (int newValuesPerUpdate) |
| void | startAutomaticUpdate () |
Public Attributes | |
| SinusFunction | f = new SinusFunction() |
| Point[] | points |
Protected Member Functions | |
| synchronized void | runIt () |
| void | updateValues () |
Protected Attributes | |
| int | updateRate = 1000 |
| int | valuesPerUpdate = 1 |
| double | speed = 1.0 |
| int | index = 0 |
| boolean | ready = true |
Private Attributes | |
| long | x = 0 |
Insert the type's description here. Creation date: (2/1/01 9:11:47 PM)
| com::cosylab::gui::components::r2::chart::SinusTrendModel::SinusTrendModel | ( | ) | [inline] |
SinusTrendModel constructor comment.
References f, com::cosylab::gui::components::r2::chart::SinusFunction::setAmplitude(), com::cosylab::gui::components::r2::chart::SinusFunction::setOffset(), com::cosylab::gui::components::r2::chart::SinusFunction::setPhase(), setSpeed(), setValuesPerUpdate(), and valuesPerUpdate.
| PointIterator com::cosylab::gui::components::r2::chart::SinusTrendModel::getPointIterator | ( | ) | [inline] |
Insert the method's description here. Creation date: (2/1/01 9:11:47 PM)
Implements com::cosylab::gui::components::r2::chart::ChartDataModel.
References index, and updateValues().
| double com::cosylab::gui::components::r2::chart::SinusTrendModel::getSpeed | ( | ) | [inline] |
Insert the method's description here. Creation date: (2/2/01 11:17:32 AM)
References speed.
| int com::cosylab::gui::components::r2::chart::SinusTrendModel::getUpdateRate | ( | ) | [inline] |
Insert the method's description here. Creation date: (2/1/01 9:13:01 PM)
References updateRate.
| int com::cosylab::gui::components::r2::chart::SinusTrendModel::getValuesPerUpdate | ( | ) | [inline] |
Insert the method's description here. Creation date: (2/1/01 9:13:35 PM)
References valuesPerUpdate.
| boolean com::cosylab::gui::components::r2::chart::SinusTrendModel::hasNext | ( | ) | [inline] |
Insert the method's description here. Creation date: (2/1/01 9:11:47 PM)
Implements com::cosylab::gui::components::r2::chart::PointIterator.
References index, and valuesPerUpdate.
| Point com::cosylab::gui::components::r2::chart::SinusTrendModel::next | ( | ) | [inline] |
Insert the method's description here. Creation date: (2/1/01 9:11:47 PM)
Implements com::cosylab::gui::components::r2::chart::PointIterator.
| synchronized void com::cosylab::gui::components::r2::chart::SinusTrendModel::runIt | ( | ) | [inline, protected] |
Insert the method's description here. Creation date: (2/2/01 11:28:53 AM)
References com::cosylab::gui::components::r2::chart::AbstractDataModel::updateChartData(), and updateRate.
Referenced by startAutomaticUpdate().
| void com::cosylab::gui::components::r2::chart::SinusTrendModel::setSpeed | ( | double | newSpeed | ) | [inline] |
Insert the method's description here. Creation date: (2/2/01 11:17:32 AM)
| newSpeed | double |
References f, com::cosylab::gui::components::r2::chart::SinusFunction::setFrequency(), and speed.
Referenced by SinusTrendModel().
| void com::cosylab::gui::components::r2::chart::SinusTrendModel::setUpdateRate | ( | int | newUpdateRate | ) | [inline] |
Insert the method's description here. Creation date: (2/1/01 9:13:01 PM)
| newUpdateRate | int |
References updateRate.
| void com::cosylab::gui::components::r2::chart::SinusTrendModel::setValuesPerUpdate | ( | int | newValuesPerUpdate | ) | [inline] |
Insert the method's description here. Creation date: (2/1/01 9:13:35 PM)
| newValuesPerUpdate | int |
References com::cosylab::gui::components::r2::chart::AbstractDataModel::pointCount, points, ready, and valuesPerUpdate.
Referenced by SinusTrendModel().
| void com::cosylab::gui::components::r2::chart::SinusTrendModel::startAutomaticUpdate | ( | ) | [inline] |
SinusTrendModel constructor comment.
References runIt().
Referenced by com::cosylab::gui::components::r2::chart::TrendDemo::initialize().
| void com::cosylab::gui::components::r2::chart::SinusTrendModel::updateValues | ( | ) | [inline, protected] |
Insert the method's description here. Creation date: (2/2/01 11:28:53 AM)
References f, com::cosylab::gui::components::r2::chart::AbstractDataModel::pointCount, points, updateRate, valuesPerUpdate, com::cosylab::gui::components::r2::chart::Point::x, x, com::cosylab::gui::components::r2::chart::SinusFunction::y(), and com::cosylab::gui::components::r2::chart::Point::y.
Referenced by getPointIterator().
Referenced by setSpeed(), SinusTrendModel(), and updateValues().
int com::cosylab::gui::components::r2::chart::SinusTrendModel::index = 0 [protected] |
Referenced by getPointIterator(), hasNext(), and next().
Referenced by next(), setValuesPerUpdate(), and updateValues().
boolean com::cosylab::gui::components::r2::chart::SinusTrendModel::ready = true [protected] |
Referenced by setValuesPerUpdate().
double com::cosylab::gui::components::r2::chart::SinusTrendModel::speed = 1.0 [protected] |
Referenced by getSpeed(), and setSpeed().
int com::cosylab::gui::components::r2::chart::SinusTrendModel::updateRate = 1000 [protected] |
Referenced by getUpdateRate(), runIt(), setUpdateRate(), and updateValues().
int com::cosylab::gui::components::r2::chart::SinusTrendModel::valuesPerUpdate = 1 [protected] |
Referenced by getValuesPerUpdate(), hasNext(), setValuesPerUpdate(), SinusTrendModel(), and updateValues().
long com::cosylab::gui::components::r2::chart::SinusTrendModel::x = 0 [private] |
Referenced by updateValues().
1.6.2