实时Java图表/图表库?

编程入门 行业动态 更新时间:2024-10-28 02:23:52
本文介绍了实时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图表/图表库?

本文发布于:2023-11-10 10:29:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575103.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图表   实时   Java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!