

0*********1*********2*********3*********4*********5*********6*********7** BaseChart is basic component, which binds together all chart related interfaces and puts on screen by interfaces prepared image. BaseChart buffers chart image. Following interfaces are registered at BaseChart:
CharticsChartAreaChartXAxisChartYAxisChartViewManagerUser is encouraged to implement its own custom behaviour in case default implementation is not suitable.
BaseChart tends to be as lightweight as possible. All real charting work is done by upper interfaces. BaseChart is merely joins them together. Idea behind is, that you can not have one component (peace of code) to be in the same time highly customisable and really fast. This chart package ties to achieve both, performance and flexibility, with collaboration of objects.
| com::cosylab::gui::components::r2::chart::BaseChart::BaseChart | ( | ) | [inline] |
BaseChart constructor. All values and interfaces are initialized to the default implementation.
References _mouseClicked(), getViewManager(), setBackground(), com::cosylab::gui::components::r2::chart::ChartViewManager::setUserXScaleUsed(), com::cosylab::gui::components::r2::chart::ChartViewManager::setUserYScaleUsed(), com::cosylab::gui::components::r2::chart::ChartViewManager::setXScale(), com::cosylab::gui::components::r2::chart::ChartViewManager::setYScale(), and updateLayout().
Referenced by com::cosylab::gui::components::r2::chart::demo::ChartFrame::getBaseChart(), com::cosylab::gui::components::r2::chart::TrendDemo::getChart(), and main().
| com::cosylab::gui::components::r2::chart::BaseChart::[instance initializer] | ( | ) | [inline, package] |
| void com::cosylab::gui::components::r2::chart::BaseChart::_mouseClicked | ( | java.awt.event.MouseEvent | mouseEvent | ) | [inline, private] |
References getChartCustomizer(), and com::cosylab::gui::components::r2::chart::BaseChartCustomizer::updateCustomizer().
Referenced by BaseChart().
| void com::cosylab::gui::components::r2::chart::BaseChart::addNotify | ( | ) | [inline] |
This method also update Layout.
References updateLayout().
| void com::cosylab::gui::components::r2::chart::BaseChart::drawAxis | ( | java.awt.Graphics | g | ) | [inline, protected] |
Draws axis around chart area.
| g | java.awt.Graphics |
References com::cosylab::gui::components::r2::chart::ChartAxis::drawAxis(), getXAxis(), getYAxis(), and handleException().
Referenced by updateImageBuffer().
| void com::cosylab::gui::components::r2::chart::BaseChart::drawData | ( | java.awt.Graphics | g, | |
| ChartUpdateRequest | request | |||
| ) | [inline, protected] |
Draws chart.
| g | java.awt.Graphics |
References com::cosylab::gui::components::r2::chart::ChartArea::drawData(), getChartArea(), getChartics(), and handleException().
Referenced by updateImageBuffer().
| ChartArea com::cosylab::gui::components::r2::chart::BaseChart::getChartArea | ( | ) | [inline] |
Returns ChartArea interface. If ChartArea
References chartArea, defaultChartDecorator, com::cosylab::gui::components::r2::chart::ChartFlavor::getChartArea(), com::cosylab::gui::components::r2::chart::ChartDecorator::getDefultChartFlavor(), com::cosylab::gui::components::r2::chart::ChartArea::setChartService(), and updateLayout().
Referenced by com::cosylab::gui::components::r2::chart::AbstractChartDecorator::applyModels(), drawData(), getChartDisplayablePointCount(), getChartStyleManager(), getViewManager(), getXAxis(), getYAxis(), main(), setChartArea(), setChartStyleManager(), setViewManager(), setXAxis(), setYAxis(), com::cosylab::gui::components::r2::chart::demo::ChartDemo::startDefaultChart(), com::cosylab::gui::components::r2::chart::demo::ChartDemo::startFancyChart(), com::cosylab::gui::components::r2::chart::demo::ChartDemo::startHistoryTrendChart(), com::cosylab::gui::components::r2::chart::demo::ChartDemo::startSimpleTrendChart(), com::cosylab::gui::components::r2::chart::BaseChartCustomizer::updateCustomizer(), updateImageBuffer(), and updateLayout().
| BaseChartCustomizer com::cosylab::gui::components::r2::chart::BaseChart::getChartCustomizer | ( | ) | [inline] |
This method return BaseChartCustomizer that is used for customizing some settings of chart.
References chartCustomizer, and handleException().
Referenced by _mouseClicked().
| ChartDecorator com::cosylab::gui::components::r2::chart::BaseChart::getChartDecorator | ( | ) | [inline] |
Insert the method's description here. Creation date: (28.1.2002 12:45:17)
References chartDecorator.
| int com::cosylab::gui::components::r2::chart::BaseChart::getChartDisplayablePointCount | ( | ) | [inline] |
Insert the method's description here. Creation date: (11/24/00 18:24:52)
Implements com::cosylab::gui::components::r2::chart::ChartService.
References getChartArea(), and com::cosylab::gui::components::r2::chart::ChartArea::getChartRectangle().
| Chartics com::cosylab::gui::components::r2::chart::BaseChart::getChartics | ( | ) | [inline] |
Insert the method's description here. Creation date: (11/27/00 15:15:46)
References chartics, and com::cosylab::gui::components::r2::chart::Chartics::setBackground().
Referenced by drawData(), paintComponent(), setBackground(), updateImageBuffer(), and updateMainBuffer().
| ChartStyleManager com::cosylab::gui::components::r2::chart::BaseChart::getChartStyleManager | ( | ) | [inline] |
Insert the method's description here. Creation date: (31.03.2001 00:32:16)
Implements com::cosylab::gui::components::r2::chart::ChartService.
References chartStyleManager, defaultChartDecorator, getChartArea(), com::cosylab::gui::components::r2::chart::ChartFlavor::getChartStyleManager(), com::cosylab::gui::components::r2::chart::ChartDecorator::getDefultChartFlavor(), and com::cosylab::gui::components::r2::chart::ChartArea::setChartService().
| ChartDecorator com::cosylab::gui::components::r2::chart::BaseChart::getDefaultChartDecorator | ( | ) | [inline] |
Insert the method's description here. Creation date: (28.1.2002 12:47:54)
References defaultChartDecorator.
| java.awt.Insets com::cosylab::gui::components::r2::chart::BaseChart::getMargin | ( | ) | [inline] |
| ChartViewManager com::cosylab::gui::components::r2::chart::BaseChart::getViewManager | ( | ) | [inline] |
This method return ChartViewManager class.
Implements com::cosylab::gui::components::r2::chart::ChartService.
References defaultChartDecorator, getChartArea(), com::cosylab::gui::components::r2::chart::ChartDecorator::getDefultChartFlavor(), com::cosylab::gui::components::r2::chart::ChartFlavor::getViewManager(), getXAxis(), getYAxis(), com::cosylab::gui::components::r2::chart::ChartArea::setChartService(), com::cosylab::gui::components::r2::chart::ChartAxis::setViewManager(), and viewManager.
Referenced by BaseChart(), getXAxis(), getYAxis(), com::cosylab::gui::components::r2::chart::TrendDemo::initialize(), com::cosylab::gui::components::r2::chart::BaseChartCustomizer::oKButton_ActionPerformed(), setViewManager(), setXAxis(), setYAxis(), com::cosylab::gui::components::r2::chart::demo::ChartDemo::startHistoryTrendChart(), com::cosylab::gui::components::r2::chart::demo::ChartDemo::startSimpleTrendChart(), com::cosylab::gui::components::r2::chart::BaseChartCustomizer::updateCustomizer(), and updateImageBuffer().
| ChartXAxis com::cosylab::gui::components::r2::chart::BaseChart::getXAxis | ( | ) | [inline] |
This method return ChartXAxis, which is interfdace for class that is used for drawing x axis.
References defaultChartDecorator, getChartArea(), com::cosylab::gui::components::r2::chart::ChartDecorator::getDefultChartFlavor(), getViewManager(), com::cosylab::gui::components::r2::chart::ChartFlavor::getXAxis(), com::cosylab::gui::components::r2::chart::ChartAxis::setChartSize(), com::cosylab::gui::components::r2::chart::ChartAxis::setViewManager(), and xAxis.
Referenced by drawAxis(), getViewManager(), paintComponent(), setViewManager(), setXAxis(), updateImageBuffer(), updateLayout(), and updateMainBuffer().
| ChartYAxis com::cosylab::gui::components::r2::chart::BaseChart::getYAxis | ( | ) | [inline] |
This method return ChartYAxis, which is interfdace for class that is used for drawing y axis.
References defaultChartDecorator, getChartArea(), com::cosylab::gui::components::r2::chart::ChartDecorator::getDefultChartFlavor(), getViewManager(), com::cosylab::gui::components::r2::chart::ChartFlavor::getYAxis(), com::cosylab::gui::components::r2::chart::ChartAxis::setChartSize(), com::cosylab::gui::components::r2::chart::ChartAxis::setViewManager(), and yAxis.
Referenced by drawAxis(), getViewManager(), paintComponent(), setViewManager(), setYAxis(), updateImageBuffer(), updateLayout(), and updateMainBuffer().
| void com::cosylab::gui::components::r2::chart::BaseChart::handleException | ( | java.lang.Throwable | exception | ) | [inline, private] |
Called whenever the part throws an exception.
| exception | java.lang.Throwable |
Referenced by drawAxis(), drawData(), and getChartCustomizer().
| static void com::cosylab::gui::components::r2::chart::BaseChart::main | ( | java.lang.String[] | args | ) | [inline, static] |
Starts simple chart demo presentation.
| args | java.lang.String[] |
References com::cosylab::gui::components::r2::chart::ChartArea::addDataModel(), BaseChart(), and getChartArea().
| void com::cosylab::gui::components::r2::chart::BaseChart::paintComponent | ( | java.awt.Graphics | g | ) | [inline, protected] |
Insert the method's description here. Creation date: (11/20/00 12:27:38)
| g | java.awt.Graphics |
References chartRectangle, getChartics(), getXAxis(), getYAxis(), com::cosylab::gui::components::r2::chart::BaseChart::ChartUpdater::queueRequest(), updater, updateRequests, and userMargin.
| void com::cosylab::gui::components::r2::chart::BaseChart::setBackground | ( | java.awt.Color | c | ) | [inline] |
References getChartics(), and com::cosylab::gui::components::r2::chart::Chartics::setBackground().
Referenced by BaseChart().
| void com::cosylab::gui::components::r2::chart::BaseChart::setChartArea | ( | ChartArea | newChartArea | ) | [inline] |
Insert the method's description here. Creation date: (11/27/00 15:16:29)
| newChartArea | si.ijs.anka.databush.utilities.ChartArea |
References chartArea, getChartArea(), com::cosylab::gui::components::r2::chart::ChartArea::setChartService(), and updateLayout().
Referenced by com::cosylab::gui::components::r2::chart::AbstractChartDecorator::applyFlavor(), and com::cosylab::gui::components::r2::chart::TrendDemo::initialize().
| void com::cosylab::gui::components::r2::chart::BaseChart::setChartDecorator | ( | ChartDecorator | newChartDecorator | ) | [inline] |
Insert the method's description here. Creation date: (28.1.2002 12:45:17)
| newChartDecorator | com.cosylab.gui.chart.ChartDecorator |
References chartDecorator.
| void com::cosylab::gui::components::r2::chart::BaseChart::setChartics | ( | Chartics | newChartics | ) | [inline] |
Insert the method's description here. Creation date: (11/27/00 15:15:46)
| newChartics | si.ijs.anka.databush.utilities.Chartics |
References chartics.
| void com::cosylab::gui::components::r2::chart::BaseChart::setChartStyleManager | ( | ChartStyleManager | newChartStyleManager | ) | [inline] |
Insert the method's description here. Creation date: (31.03.2001 00:32:16)
| newChartStyleManager | si.ijs.kgb.chart.ChartStyleManager |
References chartStyleManager, getChartArea(), and com::cosylab::gui::components::r2::chart::ChartArea::setChartService().
Referenced by com::cosylab::gui::components::r2::chart::AbstractChartDecorator::applyFlavor().
| void com::cosylab::gui::components::r2::chart::BaseChart::setDefaultChartDecorator | ( | ChartDecorator | newDefaultChartDecorator | ) | [inline] |
Insert the method's description here. Creation date: (28.1.2002 12:47:54)
| newDefaultChartDecorator | com.cosylab.gui.chart.ChartDecorator |
References defaultChartDecorator.
| void com::cosylab::gui::components::r2::chart::BaseChart::setMargin | ( | java.awt.Insets | newMargin | ) | [inline] |
Insert the method's description here. Creation date: (11/20/00 12:21:51)
| newMargin | java.awt.Insets |
References updateLayout(), and userMargin.
| void com::cosylab::gui::components::r2::chart::BaseChart::setViewManager | ( | ChartViewManager | newViewManager | ) | [inline] |
Insert the method's description here. Creation date: (24/12/01 23:07:45)
| newViewManager | com.cosylab.gui.chart.ChartViewManager |
References getChartArea(), getViewManager(), getXAxis(), getYAxis(), com::cosylab::gui::components::r2::chart::ChartArea::setChartService(), com::cosylab::gui::components::r2::chart::ChartAxis::setViewManager(), and viewManager.
Referenced by com::cosylab::gui::components::r2::chart::AbstractChartDecorator::applyFlavor().
| void com::cosylab::gui::components::r2::chart::BaseChart::setXAxis | ( | ChartXAxis | newXAxis | ) | [inline] |
Insert the method's description here. Creation date: (13/10/01 12:37:29)
| newXAxis | si.ijs.kgb.chart.ChartXAxis |
References getChartArea(), getViewManager(), getXAxis(), com::cosylab::gui::components::r2::chart::ChartAxis::setChartSize(), com::cosylab::gui::components::r2::chart::ChartAxis::setViewManager(), and xAxis.
Referenced by com::cosylab::gui::components::r2::chart::AbstractChartDecorator::applyFlavor().
| void com::cosylab::gui::components::r2::chart::BaseChart::setYAxis | ( | ChartYAxis | newYAxis | ) | [inline] |
Insert the method's description here. Creation date: (13/10/01 12:38:45)
| newYAxis | si.ijs.kgb.chart.ChartYAxis |
References getChartArea(), getViewManager(), getYAxis(), com::cosylab::gui::components::r2::chart::ChartAxis::setChartSize(), com::cosylab::gui::components::r2::chart::ChartAxis::setViewManager(), and yAxis.
Referenced by com::cosylab::gui::components::r2::chart::AbstractChartDecorator::applyFlavor().
| void com::cosylab::gui::components::r2::chart::BaseChart::updateChart | ( | ChartUpdateRequest | request | ) | [inline] |
Implements com::cosylab::gui::components::r2::chart::ChartService.
References com::cosylab::gui::components::r2::chart::BaseChart::ChartUpdater::queueRequest(), updater, and updateRequests.
Referenced by com::cosylab::gui::components::r2::chart::BaseChartCustomizer::oKButton_ActionPerformed(), and com::cosylab::gui::components::r2::chart::demo::ChartFrame::run().
| synchronized void com::cosylab::gui::components::r2::chart::BaseChart::updateImageBuffer | ( | ChartUpdateRequest | request | ) | [inline, protected] |
Insert the method's description here. Creation date: (11/20/00 12:27:38)
| g | java.awt.Graphics |
References chartics, chartRectangle, drawAxis(), drawData(), getChartArea(), getChartics(), com::cosylab::gui::components::r2::chart::ChartArea::getChartRectangle(), com::cosylab::gui::components::r2::chart::Chartics::getGraphics(), getViewManager(), getXAxis(), getYAxis(), com::cosylab::gui::components::r2::chart::ChartUpdateRequest::RELOAD_ALL, and com::cosylab::gui::components::r2::chart::ChartViewManager::revalidate().
Referenced by updateMainBuffer().
| synchronized void com::cosylab::gui::components::r2::chart::BaseChart::updateLayout | ( | ) | [inline, protected] |
Insert the method's description here. Creation date: (13/10/01 13:13:30)
References chartRectangle, getChartArea(), getXAxis(), getYAxis(), com::cosylab::gui::components::r2::chart::ChartAxis::setChartSize(), com::cosylab::gui::components::r2::chart::ChartArea::setSize(), and userMargin.
Referenced by addNotify(), BaseChart(), getChartArea(), setChartArea(), setMargin(), and updateMainBuffer().
| void com::cosylab::gui::components::r2::chart::BaseChart::updateMainBuffer | ( | ChartUpdateRequest | request | ) | [inline, protected] |
Updates main offscreen buffer.
| request |
References chartRectangle, getChartics(), getXAxis(), getYAxis(), com::cosylab::gui::components::r2::chart::Chartics::setImage(), com::cosylab::gui::components::r2::chart::ChartUpdateRequest::UPDATE_ALL, updateImageBuffer(), updateLayout(), and userMargin.
Referenced by com::cosylab::gui::components::r2::chart::BaseChart::ChartUpdater::run().
Referenced by getChartArea(), and setChartArea().
Referenced by getChartCustomizer().
Referenced by getChartDecorator(), and setChartDecorator().
Referenced by getChartics(), setChartics(), and updateImageBuffer().
java.awt.Rectangle com::cosylab::gui::components::r2::chart::BaseChart::chartRectangle [private] |
Referenced by paintComponent(), updateImageBuffer(), updateLayout(), and updateMainBuffer().
Referenced by getChartStyleManager(), and setChartStyleManager().
ChartDecorator com::cosylab::gui::components::r2::chart::BaseChart::defaultChartDecorator = new DefaultChartDecorator() [private] |
Referenced by getChartArea(), getChartStyleManager(), getDefaultChartDecorator(), getViewManager(), getXAxis(), getYAxis(), and setDefaultChartDecorator().
final java.lang.String com::cosylab::gui::components::r2::chart::BaseChart::PROPERTY_CHART = "chart" [static] |
ChartUpdater com::cosylab::gui::components::r2::chart::BaseChart::updater = new ChartUpdater() [private] |
Referenced by paintComponent(), and updateChart().
int com::cosylab::gui::components::r2::chart::BaseChart::updateRequests = 0 [private] |
Referenced by paintComponent(), and updateChart().
java.awt.Insets com::cosylab::gui::components::r2::chart::BaseChart::userMargin = new java.awt.Insets(30, 10, 10, 40) [private] |
Referenced by getMargin(), paintComponent(), setMargin(), updateLayout(), and updateMainBuffer().
Referenced by getViewManager(), and setViewManager().
Referenced by getXAxis(), and setXAxis().
Referenced by getYAxis(), and setYAxis().
1.6.2