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

查看:32
本文介绍了实时 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).

推荐答案

FAQ 实际上说的是 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天全站免登陆