Page 1 of 1

lines, annotations and cursor tool encroaching into subchar

Posted: Fri Jul 05, 2013 6:50 am
by 17466268
I am extending the scrollpager demo
I have added annotations, a cursor tool and drawn various lines
As soon as I drag the lower scroll window , some annotations, lines and the cursor tool are drawn over the drag window permanently
If I click in the drag window in the subchart the annotations return to their proper position [which I should not have to do]
The lines and cursor tool stay encroached in the sub chart.
I have a working project which I can upload but there seems to be a general problem with pixel calculation
Are you aware of such problems or do you need me to upload the complete project and more explanation

Re: lines, annotations and cursor tool encroaching into subchar

Posted: Fri Jul 05, 2013 2:24 pm
by yeray

I don't see any problem with the following example, in Swing:

Code: Select all

    ScrollPager scroller1;
    private void initChart() {
        Line line1 = new Line(tChart1.getChart());
        scroller1 = new ScrollPager(tChart1.getChart());
        tChart1.addComponentListener(new ComponentAdapter() {

            public void componentResized(ComponentEvent e) {
                if (scroller1.getSeries() == null) {
        CursorTool cursor1 = new CursorTool(tChart1.getChart());
        Annotation annot1 = new Annotation(tChart1.getChart());
        annot1.setText("My Annotation Tool");
Please, modify the code above or upload a simple example project we can run as-is to reproduce the problem here.
Thanks in advance.