用Java绘制的实时系统的简单执行序列
我需要为使用速率单调算法调度的一些实时系统绘制一些执行序列。绘图必须使用 Java 完成,而且必须非常基础。 你有一个非常简单的方法来画这幅画吗?比 Graphics2D 更简单?
多谢!
我希望图表像这样简单甚至更简单:
I need to draw some execution sequences for some real time systems scheduled using rate monotonic algorithm. The drawing has to be done using Java and it has to be very basic.
Do you a very simple way to do this drawing? Simpler than Graphics2D?
Thanks a lot!
The diagram I want to be as simple or even simpler as this one:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议你尝试使用Processing,它能够在零时间内用Java完成这些事情。主页
您可以轻松地将处理框架嵌入您的应用程序中,但请记住它们基于 AWT,因此它们很重并且不喜欢被覆盖(例如在
JInternalFrame
中)好像想画的是甘特图吧?
您也可以尝试使用 JFreeChart(参见演示 此处),它是非常可定制的并且工作正常..主页此处
I would suggest you to try with Processing, which is able to do such things with Java in zero time.. home page here.
You can easily embed a Processing frame inside your app, but remember that they are based on AWT so they are heavy weight and don't like being overlayed (for example in a
JInternalFrame
)By the way what you seem to want to draw is a Gantt chart right?
You can try with JFreeChart too (see demo here), it's quite customizable and works fine.. homepage here