简体   繁体   English

蜡染Swing SVG:画布中对象的事件

[英]Batik Swing SVG: Events on Objects in Canvas

I'm looking for a java library to use SVG for work flow presentation. 我正在寻找一个使用SVG进行工作流程演示的Java库。

My question: 我的问题:

is Batik this dynamic that you can move the objects in a svg drawing? 蜡染是这种动态的,可以在svg绘图中移动对象吗? Eg moving icons in a canvas. 例如在画布中移动图标。 Something like this: moveable objects 像这样的东西: 可移动的对象

Yes, Batik's support for interactivity and scripting is very good. 是的,蜡染对交互性和脚本的支持非常好。 See here , where they say: 看到这里 ,他们说:

The latest revision of Batik, release 1.7, is a conformant static SVG implementation and supports interactivity, linking and scripting features of the SVG specification. Batik的最新版本1.7是一致的静态SVG实现,并支持SVG规范的交互性,链接和脚本功能。 This release supports a nearly complete implementation of declarative animation, too. 此版本还支持声明性动画的几乎完整实现。

You can see here that they score an A+, and one of the highest overall scores compared to other SVG implementations. 您可以在这里看到他们的得分为A +,是与其他SVG实现方案相比最高的总体得分之一。

The language (JavaScript) and DOM interfaces are pretty much the same as what you would find in the browser environment as well, making it possible to write very portable UI code that runs well in both contexts. 语言(JavaScript)和DOM接口与您在浏览器环境中发现的接口几乎相同,从而可以编写非常可移植的UI代码,使其在两种情况下均能很好地运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM