Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1695 - ScrollPager tool zoom only in the parent chart
Summary: ScrollPager tool zoom only in the parent chart
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Android (show other bugs)
Version: 3.2016.0419
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-25 04:41 EST by yeray alonso
Modified: 2017-03-02 08:37 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2016-11-25 04:41:26 EST
When you have a ScrollPager, if you don't disable the Zoom, when you drag the ColorBand in the ScrollPager, the Zoom rectangle is drawn covering the whole chart as if it was a regular chart.

    private void scrollPagerTest() {
        Line series = new Line(tChart1.getChart());
        series.fillSampleValues();
        //tChart1.getZoom().setAllow(false);

        new ScrollPager(tChart1.getChart());

        tChart1.addChartPaintListener(new ChartPaintAdapter() {

            @Override
            public void chartPainted(ChartDrawEvent e) {
                if (tChart1.getTools().getTool(0).getClass() == ScrollPager.class) {
                    ScrollPager s = (ScrollPager) tChart1.getTools().getTool(0);
                    if (s.getSeries() == null) {
                        s.setSeries(tChart1.getSeries(0));

                        TChart scrollPagerChart = s.getSubChartTChart();

                        ThemesList.applyTheme(scrollPagerChart.getChart(), 11);
                        ThemesList.applyTheme(s.getChart(), 11);
                    }
                }
            }
        });
    }