Java SVG 图形界面中的属性修改
我想使用特定于域的图标/术语以某种图形格式呈现java对象。
我在这个图形模式下想要的 2 个最重要的功能是 1)能够通过用鼠标选择图像来更改图像的属性 2) 能够放大/缩小图像的一部分。
我可以使用 Apache Batik 渲染 SVG 中的图形吗?它能为我提供上述功能吗?
请随意向我推荐任何其他基于 java 的框架/技术,可以帮助我实现这一目标。
I want to render java objects in some graphical format with the domain specific icons/terminology.
2 most important feature i would like in this graphics mode are
1) Ability to change an attribute of the image by selecting it with mouse
2) Ability to zoom in/out on section of the image.
Can I use Apache Batik to render the graphics in SVG. And can it provide me with the above mentioned functionality.
Please feel free to suggest me any other java based framework/technology which can help me in achieving this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,蜡染可以做到这一点。但我不建议使用蜡染。它似乎已经死了(自 2008 年 1 月以来一直没有更新),在使用动画 svg 时存在一些严重的性能问题,并且有许多错误。但如果你想将它用于自制项目,则不需要完全稳定,这是可以的。
JSVGCanvas 显示一个 svg 文件,您可以可以平移、缩放和旋转它。您还可以安装侦听器来与元素交互。
Yes, that is possible with Batik. But I can not recommend to use batik. It seems to be dead (has not been updated since January 2008), has some heavy performance issues when using animated svg's and has many bugs. But if you want to use it for a home-made project, that doesn't need to be totally stable, its ok.
The JSVGCanvas displays an svg-file and you can pan, zoom and rotate it. You're also be able to install listeners to interact with elements.