用Java绘制的实时系统的简单执行序列

发布于 2024-09-27 20:24:59 字数 192 浏览 1 评论 0原文

我需要为使用速率单调算法调度的一些实时系统绘制一些执行序列。绘图必须使用 Java 完成,而且必须非常基础。 你有一个非常简单的方法来画这幅画吗?比 Graphics2D 更简单?

多谢!

我希望图表像这样简单甚至更简单:alt text

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:alt text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

平定天下 2024-10-04 20:24:59

我建议你尝试使用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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文