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
 QCChart2D for Java
 x axis time of 1 second range
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sylvie

6 Posts

Posted - 08 Aug 2006 :  07:12:22  Show Profile  Reply with Quote
Hi,
I need TimeCoordinates with range of 1 second, and i get the following exception when i try to draw a table with such coordinates:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException
at java.util.GregorianCalendar.add(Unknown Source)
at com.quinncurtis.chart2djava.TimeAxis.defineMillisecondAxisTicks(TimeAxis.java:953)
at com.quinncurtis.chart2djava.TimeAxis.defineTimeAxisTics(TimeAxis.java:1472)
at com.quinncurtis.chart2djava.TimeAxis.drawTimeAxis(TimeAxis.java:1594)
at com.quinncurtis.chart2djava.TimeAxis.draw(TimeAxis.java:1625)
at com.quinncurtis.chart2djava.ChartView.drawObject(ChartView.java:735)
at com.quinncurtis.chart2djava.ChartView.preRender(ChartView.java:1336)
at com.quinncurtis.chart2djava.ChartView.draw(ChartView.java:1410)
at com.quinncurtis.chart2djava.ChartView.paintComponent(ChartView.java:337)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

If i give the coordinates 2-seconds-apart start time & end time it works and for 1 second it doesn't. I need 1 second scale in my application. Is there anything i can do?

Thanks,
Sylvie.

quinncurtis

1164 Posts

Posted - 08 Aug 2006 :  10:28:16  Show Profile  Reply with Quote
Show exactly how you define the dates and scale the coordinate system you are using.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 08 Aug 2006 :  17:22:25  Show Profile  Reply with Quote
We did find a problem with a 1-second range for the time axis. We made a fix and uploaded the modified libraries. You can download the updated version using your original download links.

The minimum range you can have for a time axis is 0.2 seconds. After that you should be using a CartesianCoordinates and a LinearAxis instead of TimeCoordinates and TimeAxis.
Go to Top of Page

sylvie

6 Posts

Posted - 09 Aug 2006 :  01:31:52  Show Profile  Reply with Quote
Thanks
Go to Top of Page

sylvie

6 Posts

Posted - 09 Aug 2006 :  04:01:44  Show Profile  Reply with Quote
Hi again,
I downloaded the new jars, and now when i try to build the chart with the 1 second range, there is no exception but the application is completely stuck until i kill it from outside. it doesn't happen when i build a chart with 10 seconds range. Could you please check it?
Thank you,
Sylvie.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 14 Aug 2006 :  10:00:24  Show Profile  Reply with Quote
We tested the software using our time coordinate zoom example program and initially could not reproduce a problem. We did find a problem if you were displaying the first second of the day with a range of 1 second.

We believe we fixed it and have sent you replacement qcchart2djava.jar files. If you can't receive large attachments you should re-download the software using your original download link.

Go to Top of Page

sylvie

6 Posts

Posted - 15 Aug 2006 :  03:23:29  Show Profile  Reply with Quote
It works now. Thanks!

Sylvie
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07