You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by hi...@apache.org on 2002/03/08 10:00:59 UTC
cvs commit: xml-batik/xdocs javaScripting.xml
hillion 02/03/08 01:00:59
Modified: xdocs javaScripting.xml
Log:
- Documentation updates.
Revision Changes Path
1.2 +10 -4 xml-batik/xdocs/javaScripting.xml
Index: javaScripting.xml
===================================================================
RCS file: /home/cvs/xml-batik/xdocs/javaScripting.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- javaScripting.xml 8 Mar 2002 08:45:28 -0000 1.1
+++ javaScripting.xml 8 Mar 2002 09:00:59 -0000 1.2
@@ -11,7 +11,7 @@
<!-- ========================================================================= -->
<!-- author shillion@ilog.fr -->
-<!-- version $Id: javaScripting.xml,v 1.1 2002/03/08 08:45:28 hillion Exp $ -->
+<!-- version $Id: javaScripting.xml,v 1.2 2002/03/08 09:00:59 hillion Exp $ -->
<!-- ========================================================================= -->
<document>
<header>
@@ -27,7 +27,10 @@
The follow code template demonstrates how to manipulate an SVG
document displayed in a JSVGCanvas directly from a Java program.
</p>
-
+ <p>
+ Notices that you don't have to worry about the graphics updates:
+ each event dispatch updates the canvas if needed.
+ </p>
<source>
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
@@ -55,7 +58,7 @@
frame = new JFrame();
canvas = new JSVGCanvas();
// Forces the canvas to always be dynamic even if the current
- // document does not contains scripting or animation.
+ // document does not contain scripting or animation.
canvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC);
canvas.addSVGLoadEventDispatcherListener
(new SVGLoadEventDispatcherAdapter() {
@@ -148,7 +151,10 @@
// Insert some actions on the DOM here
});
</source>
-
+ <p>
+ Like with event listeners, when a Runnable is invoked from the update
+ thread the graphics are updated.
+ </p>
</s1>
</body>
</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org