SVG 1.1 (Second Edition) Ä�ā‚¬ā€� 16 August 2011Top Ä�ā€¹ā€¦ Contents Ä�ā€¹ā€¦ Previous Ä�ā€¹ā€¦ Next Ä�ā€¹ā€¦ Elements Ä�ā€¹ā€¦ Attributes Ä�ā€¹ā€¦ Properties

Appendix D: Java Language Binding

Contents

This appendix is informative, not normative.

D.1 The Java language binding

The Java language binding for the SVG Document Object Model definitions is available at:

http://www.w3.org/TR/2011/REC-SVG11-20110816/java-binding.zip

Note that this language binding is not normative. The IDL Definitions are the normative parts of the SVG DOM.

D.2 Using SVG with the Java language

When scripting SVG with a language such as ECMAScript, it is possible to embed script code directly in the SVG content using the Ä�ā‚¬ļæ½scriptÄ�ā‚¬ā„¢ element and the event attributes (e.g., Ä�ā‚¬ļæ½onloadÄ�ā‚¬ā„¢ or Ä�ā‚¬ļæ½onclickÄ�ā‚¬ā„¢). For programming languages with a binary delivery format, such as the Java language, it is not possible to embed the code into the Ä�ā‚¬ļæ½scriptÄ�ā‚¬ā„¢ element or within the event attributes. Therefore there is a need to specify how such languages can bind to and handle events in the SVG document. The following technique describes how this should be done when using the Java language and what is expected of the User Agent that supports dynamic SVG content through the Java language.

The event binding of other binary programming languages is not specified.

SVG 1.1 (Second Edition) Ä�ā‚¬ā€� 16 August 2011Top Ä�ā€¹ā€¦ Contents Ä�ā€¹ā€¦ Previous Ä�ā€¹ā€¦ Next Ä�ā€¹ā€¦ Elements Ä�ā€¹ā€¦ Attributes Ä�ā€¹ā€¦ Properties