Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 Scrollbar position - show latest sample
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

atopf

Austria
3 Posts

Posted - 10 Dec 2019 :  03:32:12  Show Profile  Reply with Quote
Hello,

is it possible to alter the position of the scrollbar in such a way, that its initial position shows the latest data points (the farthest on the right) instead of the oldest.

Thx in advance!
Alex

quinncurtis

1586 Posts

Posted - 10 Dec 2019 :  10:17:53  Show Profile  Reply with Quote
Call setRescaleOnUpdatePosition with an argument of ChartObj.SCROLLBAR_POSITION_MAX at somepoint in the chart setup. The default is ChartObj.SCROLLBAR_POSITION_MIN.


this.setEnableScrollBar ( true);

this.setRescaleOnUpdatePosition( ChartObj.SCROLLBAR_POSITION_MAX);

.
.
.
this.setEnableCategoryValues( false);
this.setEnableCalculatedValues( true);
Go to Top of Page

atopf

Austria
3 Posts

Posted - 14 Jan 2020 :  04:39:20  Show Profile  Reply with Quote
This doesnt seem to help.

There is still an initial flickering (it first shows the oldest data points for a brief moment, before navigating to the latest data points)

Any other ideas?
Go to Top of Page

quinncurtis

1586 Posts

Posted - 14 Jan 2020 :  11:03:23  Show Profile  Reply with Quote
We tested it on two of our example programs: TimeVariableControlCharts.XBarRChart and TimeVariableControlCharts.XBarRSigma and it worked as we describe. Do the same thing on your end. If it works for those examples, but not for your own program you will have to try and create some sort of simple example which reproduces what you are doing in the setup which causes the issue. Then you can send that to us as a project and we can determine the cause.
You probably have more than one update taking place. You might want to comment out different events after the initial update to try and find the block of code causing the problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07