Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCRTGraph for Java
 Scroll frame's y-scale range problem

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
sylvie Posted - 01 Aug 2006 : 04:33:21
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.
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 01 Aug 2006 : 11:05:04
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07