在 Java 中可视化矢量图形,哪个库?
我需要可视化一个大的矢量图形。这是一张道路地图,道路只是线条。有图书馆吗?如果该库支持放大/缩小并且易于扩展,那就太好了。例如,实现道路选择或一些不错的鼠标悬停效果。许可证应允许在商业项目中使用。
谢谢,Philip
编辑:有理由不使用 Graphics2D 或 SWT Graphics 吗? (该项目基于SWT,不涉及任何SVG。)
I need to visualize a large vector graphic. It's a map of roads, the roads are just lines. Is there a library for that? It would be nice if that library had support for zoom-in/zoom-out and would be easy to extend. E.g. to implement selection of roads or some nice mouse-over effects. The licence should permit usage in a commercial project.
Thanks, Philip
Edit: Is there a reason not to go with Graphics2D or SWT Graphics? (The project is on SWT and doesn't involve any SVGs.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看看 Apache Batik
另一个不错的选择是 FreeHEP 和 VectorGraphics2D
Have a look at Apache Batik
Another good alternatives are FreeHEP and VectorGraphics2D
如果你谈论的是类似 SVG 的图形,我认为 Batik 就是这样。
If you're talking about SVG-like graphics, i think Batik is the way.