
Public Member Functions | |
| Interval () | |
| Interval (double min, double max) | |
| synchronized void | addIntervalListener (IntervalListener l) |
| boolean | equals (Object o) |
| double | getLength () |
| boolean | isLogaritmic () |
| double | length () |
| double | max () |
| double | min () |
| synchronized void | removeIntervalListener (IntervalListener l) |
| void | set (double min, double max) |
| void | set (Interval interval) |
| void | setLogaritmic (boolean newLogaritmic) |
| void | setMax (double max) |
| void | setMin (double min) |
| void | shift (double shift) |
| String | toString () |
| void | unionWith (Interval interval) |
Private Member Functions | |
| void | fireIntervalChange () |
Private Attributes | |
| double | min = 0.0 |
| double | max = 1.0 |
| java.util.ArrayList | list |
| boolean | logaritmic = false |
This class represent interval between two values and is usually used for specification of axis scale. It can fire event to listeners, when is changed.
| com::cosylab::gui::components::r2::chart::Interval::Interval | ( | ) | [inline] |
Interval constructor.
| com::cosylab::gui::components::r2::chart::Interval::Interval | ( | double | min, | |
| double | max | |||
| ) | [inline] |
Interval constructor, which takes as an argument minimal and maximal value of interval.
| synchronized void com::cosylab::gui::components::r2::chart::Interval::addIntervalListener | ( | IntervalListener | l | ) | [inline] |
This method adds IntervalListener to this class oblect.
References list.
Referenced by com::cosylab::gui::components::r2::chart::DefaultChartViewManager::addUserXScale(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::addUserYScale(), com::cosylab::gui::components::r2::chart::DefaultPointTransformer::setXScale(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setXScale(), com::cosylab::gui::components::r2::chart::DefaultPointTransformer::setYScale(), and com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setYScale().
| boolean com::cosylab::gui::components::r2::chart::Interval::equals | ( | Object | o | ) | [inline] |
| void com::cosylab::gui::components::r2::chart::Interval::fireIntervalChange | ( | ) | [inline, private] |
References list.
Referenced by set(), setLogaritmic(), setMax(), setMin(), shift(), and unionWith().
| double com::cosylab::gui::components::r2::chart::Interval::getLength | ( | ) | [inline] |
This method return length of interval.
Referenced by com::cosylab::gui::components::r2::chart::HistoryTrendPointService::transform().
| boolean com::cosylab::gui::components::r2::chart::Interval::isLogaritmic | ( | ) | [inline] |
Return true if this is logaritmic interval.
true if this is logaritmic interval. References logaritmic.
Referenced by com::cosylab::gui::components::r2::chart::DefaultChartYAxis::drawAxis(), and com::cosylab::gui::components::r2::chart::DefaultChartXAxis::drawAxis().
| double com::cosylab::gui::components::r2::chart::Interval::length | ( | ) | [inline] |
This method return length of interval.
Referenced by com::cosylab::gui::components::r2::chart::HistoryTrendChartArea::YListener::intervalChange(), com::cosylab::gui::components::r2::chart::HistoryTrendChartArea::XListener::intervalChange(), and com::cosylab::gui::components::r2::chart::TrendPointTransformer::transform().
| double com::cosylab::gui::components::r2::chart::Interval::max | ( | ) | [inline] |
This method returns value on the end of interval (maximal value).
Referenced by equals(), getLength(), length(), set(), shift(), toString(), and unionWith().
| double com::cosylab::gui::components::r2::chart::Interval::min | ( | ) | [inline] |
This method returns value at start of interval (minimal value).
Referenced by equals(), getLength(), length(), set(), shift(), toString(), and unionWith().
| synchronized void com::cosylab::gui::components::r2::chart::Interval::removeIntervalListener | ( | IntervalListener | l | ) | [inline] |
This method removes parameter specified IntervalListner.
References list.
Referenced by com::cosylab::gui::components::r2::chart::DefaultChartViewManager::removeUserXScale(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::removeUserYScale(), com::cosylab::gui::components::r2::chart::DefaultPointTransformer::setXScale(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setXScale(), com::cosylab::gui::components::r2::chart::DefaultPointTransformer::setYScale(), and com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setYScale().
| void com::cosylab::gui::components::r2::chart::Interval::set | ( | Interval | interval | ) | [inline] |
This method change interval to parameter specified interval and fires event IntervalChange to all listeners in list.
References fireIntervalChange(), max(), and min().
| void com::cosylab::gui::components::r2::chart::Interval::set | ( | double | min, | |
| double | max | |||
| ) | [inline] |
This method sets start and end of interval.
References fireIntervalChange(), max(), and min().
Referenced by com::cosylab::gui::components::r2::chart::AutoscaleDataService::AutoscaleDataService(), com::cosylab::gui::components::r2::chart::AutoscaleDataService::prepare(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::revalidate(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setToPreferedXScale(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setToPreferedYScale(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setUserXScaleUsed(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setUserYScaleUsed(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setXScale(), com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setYScale(), and com::cosylab::gui::components::r2::chart::TrendPointTransformer::transform().
| void com::cosylab::gui::components::r2::chart::Interval::setLogaritmic | ( | boolean | newLogaritmic | ) | [inline] |
Sets this object to present logaritmic interval. Interval event is fired.
| newLogaritmic | boolean true to set logaritmic interval. |
References fireIntervalChange(), and logaritmic.
| void com::cosylab::gui::components::r2::chart::Interval::setMax | ( | double | max | ) | [inline] |
This method sets end of interval (maximal value) and fires event IntervalChange to all listeners in list.
References fireIntervalChange().
| void com::cosylab::gui::components::r2::chart::Interval::setMin | ( | double | min | ) | [inline] |
This method sets start of interval (minimal value) and fires event IntervalChange to all listeners in list.
References fireIntervalChange().
| void com::cosylab::gui::components::r2::chart::Interval::shift | ( | double | shift | ) | [inline] |
This method adds to start and end of interval parameter specified value and fires event IntervalChange to all listeners in list.
References fireIntervalChange(), max(), and min().
| String com::cosylab::gui::components::r2::chart::Interval::toString | ( | ) | [inline] |
| void com::cosylab::gui::components::r2::chart::Interval::unionWith | ( | Interval | interval | ) | [inline] |
If union of parameter specified interval and this interval is not just this interval, this method change this interval to union of both intervals and fires event IntervalChange to all listeners in list.
References fireIntervalChange(), max, and min.
Referenced by com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setToPreferedXScale(), and com::cosylab::gui::components::r2::chart::DefaultChartViewManager::setToPreferedYScale().
java.util.ArrayList com::cosylab::gui::components::r2::chart::Interval::list [private] |
Referenced by addIntervalListener(), fireIntervalChange(), and removeIntervalListener().
boolean com::cosylab::gui::components::r2::chart::Interval::logaritmic = false [private] |
Referenced by isLogaritmic(), and setLogaritmic().
double com::cosylab::gui::components::r2::chart::Interval::max = 1.0 [private] |
Referenced by com::cosylab::gui::components::r2::chart::AutoscaleDataService::AutoscaleDataService(), com::cosylab::gui::components::r2::chart::ImprovedChartYAxis::drawAxis(), com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::drawAxis(), com::cosylab::gui::components::r2::chart::DefaultChartYAxis::drawLinAxis(), com::cosylab::gui::components::r2::chart::DefaultChartXAxis::drawLinAxis(), com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::drawLinearAxis(), com::cosylab::gui::components::r2::chart::DefaultChartYAxis::drawLogAxis(), com::cosylab::gui::components::r2::chart::DefaultChartXAxis::drawLogAxis(), com::cosylab::gui::components::r2::chart::FunctionDataModel::next(), com::cosylab::gui::components::r2::chart::AutoscaleDataService::prepare(), com::cosylab::gui::components::r2::chart::TrendPointTransformer::transform(), unionWith(), com::cosylab::gui::components::r2::chart::BaseChartCustomizer::updateCustomizer(), and com::cosylab::gui::components::r2::chart::DefaultPointTransformer::updateTransformation().
double com::cosylab::gui::components::r2::chart::Interval::min = 0.0 [private] |
Referenced by com::cosylab::gui::components::r2::chart::AutoscaleDataService::AutoscaleDataService(), com::cosylab::gui::components::r2::chart::ImprovedChartYAxis::drawAxis(), com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::drawAxis(), com::cosylab::gui::components::r2::chart::DefaultChartYAxis::drawLinAxis(), com::cosylab::gui::components::r2::chart::DefaultChartXAxis::drawLinAxis(), com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::drawLinearAxis(), com::cosylab::gui::components::r2::chart::DefaultChartYAxis::drawLogAxis(), com::cosylab::gui::components::r2::chart::DefaultChartXAxis::drawLogAxis(), com::cosylab::gui::components::r2::chart::FunctionDataModel::next(), com::cosylab::gui::components::r2::chart::AutoscaleDataService::prepare(), unionWith(), com::cosylab::gui::components::r2::chart::BaseChartCustomizer::updateCustomizer(), and com::cosylab::gui::components::r2::chart::DefaultPointTransformer::updateTransformation().
1.6.2