实时Java图表/图表库? [英] Real-time Java graph / chart library?

查看:114
本文介绍了实时Java图表/图表库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java图表或图表库中有一个较早的主题,其中JFreeChart是发现相当不错,,因为在其常见问题,不是用于实时渲染。

There was an earlier thread on Java graph or chart library, where JFreeChart was found to be quite good, but, as stated in its FAQ, it's not meant for real-time rendering.

任何人都可以推荐支持实时渲染的类似库?只是一些基本的xy渲染 - 例如,从数据采集系统获取电压信号,并绘制它的时间(x轴上的时间,y轴上的电压)。

Can anyone recommend a comparable library that supports real-time rendering? Just some basic xy-rendering - for instance, getting a voltage signal from data acquisition system and plotting it as it comes (time on x-axis, voltage on y-axis).

推荐答案

常见问题实际上说的是JFreeChart不支持硬实时图表,这意味着图表在新数据到达时或在确定性间隔后不更新。但是,我发现JFreeChart可以用于您描述的那种应用程序。你可以每秒实现1次更新,这是好的。我不认为人眼可以比这更快。

What the FAQ actually says is that JFreeChart doesn't support hard real-time charting, meaning that the chart isn't updated when new data arrives or at deterministic interval after it. However I have found that JFreeChart can be used for the kind of applications you are describing. You can achieve 1 update per second, which is fine. I don't think a human eye can follow something quicker than this.

如果你想要更多的东西,我怀疑你会在Java中找到任何东西另一种语言)。我们使用的操作系统不是实时设计的。您不能保证他们将在活动后的最短时间内回复。与硬件驱动程序的紧密集成将需要每秒显示超过1-10帧。

If you want something more than this, I doubt you will find anything in Java (or even in another language). Operating Systems that we use aren't designed to be real time. You can't have a guaranty that they will respond in a minimum interval after an event. A tight integration with the hardware driver will be needed to show more than 1-10 frames per second.

但是,如果你正确设计你的应用程序,操作系统会做出响应快速,您的应用程序可以轻松地显示实时图形(意味着每秒更新一次的图形)。只要不要在紧急情况下使用您的应用程序关闭阀门!

However, if you design your application correctly, the OS will do respond quickly and your application can easily display a "real-time" graph (meaning a graph that updates once a second). Just don't use your application to shut down a valve in an emergency situation!

这篇关于实时Java图表/图表库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆