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
 QCRTGraph for Java
 Scroll frame's y-scale range problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sylvie

6 Posts

Posted - 01 Aug 2006 :  04:33:21  Show Profile  Reply with Quote
Hi,
I have a scroll frame which get a wide range of values (for example: -3000 to 3000) and use autoscale (because that range is dynamic). I noticed that the scroll frame, after rescaling, does not show negative values. after exploring the issue, i think i found the problem - i noticed that after rescaling, the y scales always scale the max value ok, and shows a range of 1200 from min to max. i also found that PhysicalCoordinates object i'm using has 2 data members that might be relevant: chartObjType (ChartObj), which value is 1185, and yScale (LinearScale), which has the data member chartObjType = 1200.
2 questions:
1. Could it be the problem?
2. If it is the problem - these members has only get methods and not set methods. Is there a way i can solve this?

Thanks!
Sylvie.

quinncurtis

1586 Posts

Posted - 01 Aug 2006 :  11:05:04  Show Profile  Reply with Quote
We tested the general problem that you describe by modifying our ScrollApplication1 example to produce a large dynamic swing of data, from += 5000 to += 30000 and more. We made the following changes to the program:

Increased the inital values of the currentTemperature variables:

double	currentTemperatureValue1 = -5000.0;
double	currentTemperatureValue2 = 5000.0;


Increased the default range of the initial display by setting the currentTemperature default minimum and maximum display values


currentTemperature1.setDefaultMinimumDisplayValue(-10000);
currentTemperature1.setDefaultMaximumDisplayValue(10000);

currentTemperature2.setDefaultMinimumDisplayValue(-10000);
currentTemperature2.setDefaultMaximumDisplayValue(10000);


and increased the data simulation to include a strong +- bias in the data so that each temperature ramps towards + or = 30000.


currentTemperatureValue1 += 1000 * (0.65 - ChartSupport.getRandomDouble());
currentTemperatureValue2 += 1000 * (0.35 - ChartSupport.getRandomDouble());

counter++;
currentTemperature1.setCurrentValue(currentTemperatureValue1);
		
currentTemperature2.setCurrentValue(currentTemperatureValue2);


When running the example we could find no problem with the ScrollFrame autoscaling. It seemed to auto-scale properly in both direction. See what you can do to reproduce your problem using this, or any of our example programs.
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