用于在 Java 中创建 2D 形状的高级 API

发布于 2024-11-23 19:11:23 字数 338 浏览 0 评论 0原文

我正在寻找可用于创建 的 API 或程序Java 中的形状图形(特别是闭合形状)。类似于在窗户上绘画的工具,但没有颜色等。创建形状后,我将使用它们作为模拟程序的一部分,因此我需要访问实际的 java Shape 对象。

可以使用Java2D创建自己的工具,但我确信我会浪费时间,因为肯定有一些有用的工具。然而,在谷歌搜索了很长时间之后,我没有运气。任何提示将不胜感激。

I am seeking an API or program which I can use to create Shapes graphically in Java (specifically closed shapes). A tool simalar to paint in windows, but without the colors and such. After the shapes are created, I will be using them as part of a simulation program, so I need to get access to the actual java Shape objects.

I could create my own tool using Java2D, but I am sure I would be wasting my time as there must be some useful tools out there. However, after a long time scowering google, I had no luck. Any tips would be much appreciated.

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

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

发布评论

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

评论(1

蛮可爱 2024-11-30 19:11:25

这是一篇文章描述如何执行此操作并附有您可能能够使用的源代码。

Here's an article describing how to do it accompanied with source code that you might be able to use.

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