hillion     02/03/08 01:55:53

  Modified:    xdocs    javaScripting.xml scriptIntro.xml
  Log:
  - Updated the 'Scripting Intro' section.
  
  Revision  Changes    Path
  1.3       +4 -5      xml-batik/xdocs/javaScripting.xml
  
  Index: javaScripting.xml
  ===================================================================
  RCS file: /home/cvs/xml-batik/xdocs/javaScripting.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- javaScripting.xml 8 Mar 2002 09:00:59 -0000       1.2
  +++ javaScripting.xml 8 Mar 2002 09:55:53 -0000       1.3
  @@ -11,7 +11,7 @@
   
   <!-- ========================================================================= -->
   <!-- author [EMAIL PROTECTED]                                                     -->
  -<!-- version $Id: javaScripting.xml,v 1.2 2002/03/08 09:00:59 hillion Exp $ -->     
 
  +<!-- version $Id: javaScripting.xml,v 1.3 2002/03/08 09:55:53 hillion Exp $ -->     
 
   <!-- ========================================================================= -->
   <document>
     <header>
  @@ -22,13 +22,13 @@
     </header>
   
     <body>
  -    <s1 title="How to manipulate a JSVGCanvas DOM">
  +    <s1 title="How to manipulate a JSVGCanvas DOM document">
         <p>
         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:
  +      Notice that you don't have to worry about the graphics updates:
         each event dispatch updates the canvas if needed.
         </p>
   <source>
  @@ -124,7 +124,6 @@
               // Insert animation code here...
           }
       }
  -
   }
   </source>
       </s1>
  @@ -153,7 +152,7 @@
   </source>
       <p>
       Like with event listeners, when a Runnable is invoked from the update
  -    thread the graphics are updated.
  +    thread, the graphics are updated.
       </p>
       </s1>
     </body>
  
  
  
  1.8       +16 -11    xml-batik/xdocs/scriptIntro.xml
  
  Index: scriptIntro.xml
  ===================================================================
  RCS file: /home/cvs/xml-batik/xdocs/scriptIntro.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- scriptIntro.xml   15 Nov 2001 08:42:07 -0000      1.7
  +++ scriptIntro.xml   8 Mar 2002 09:55:53 -0000       1.8
  @@ -11,7 +11,7 @@
   
   <!-- ========================================================================= -->
   <!-- author [EMAIL PROTECTED]                                                     -->
  -<!-- version $Id: scriptIntro.xml,v 1.7 2001/11/15 08:42:07 cjolif Exp $   -->      
  +<!-- version $Id: scriptIntro.xml,v 1.8 2002/03/08 09:55:53 hillion Exp $   -->     
 
   <!-- ========================================================================= -->
   <document>
       <header>
  @@ -24,12 +24,12 @@
       <body>
           <s1 title="Introduction">
              <p>
  -               Batik 1.1 is a static SVG implementation, that's why scripting 
cannot be used to modify the rendering of the SVG elements on the screen. However you 
will find below a little introduction on scripting basics, on how it could be useful 
through an example and on how you can go a little bit further.
  +               You will find below a little introduction on scripting basics, on 
how it could be useful through an example and on how you can go a little bit further.
              </p>
           </s1>
           <s1 title="Scripting Basics">
              <p>
  -               As it is one of the most popular scripting language and as the SVG 
specification states that an SVG conforming implementation should support it, the 
ECMAScript (JavaScript) language is supported in Batik through the Mozilla ECMAScript 
interpreter called Rhino. Even if it is the only scripting language provided with the 
Batik standart distribution, other languages such a Python or Tcl can also be 
supported. All examples in this section will use ECMAScript.
  +               As it is one of the most popular scripting language and as the SVG 
specification states that an SVG conforming implementation should support it, the 
ECMAScript (JavaScript) language is supported in Batik through the Mozilla ECMAScript 
interpreter called Rhino. Even if it is the only scripting language provided with the 
Batik standard distribution, other languages such a Python or Tcl can also be 
supported. All examples in this section will use ECMAScript.
              </p>
              <p>
                  There are two places in an SVG file where you can put scripts. 
  @@ -67,7 +67,6 @@
              </ul>
           </s1>
           <s1 title="Scripting Uses in Batik">
  -     <p>Batik release 1.1 is a static SVG implementation, that's why in this 
version you can't use scripting to move or change graphic objects on the screen, 
however it can still be usefull for other purposes.</p>
        <p>The following simplified example that you can find in your Batik 
distribution displays a simple message in response to user events:</p>
        <source>
   &lt;svg width="450" height="500" viewBox="0 0 450 500"&gt;
  @@ -78,16 +77,22 @@
   &nbsp;&nbsp;&nbsp;&nbsp;}
   
   &nbsp;&nbsp;&nbsp;&nbsp;&lt;g&gt;
  -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="137.5" cy="110" 
r="20" style="fill:crimson" onmousedown="showDialog('onmousedown')"/&gt;
  -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="312.5" cy="110" 
r="20" style="fill:crimson" onmouseup="showDialog('onmouseup')"/&gt;
  +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="137.5" cy="110" 
r="20" style="fill:crimson"
  
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onmousedown="showDialog('onmousedown')"/&gt;
  +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="312.5" cy="110" 
r="20" style="fill:crimson"
  
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onmouseup="showDialog('onmouseup')"/&gt;
   &nbsp;&nbsp;&nbsp;&nbsp;&lt;/g&gt;
   &nbsp;&nbsp;&nbsp;&nbsp;&lt;g transform="translate(0 80)"&gt;
  -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="137.5" cy="110" 
r="20" style="fill:crimson" onmouseover="showDialog('onmouseover')"/&gt;
  -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="312.5" cy="110" 
r="20" style="fill:crimson" onmouseout="showDialog('onmouseout')"/&gt;
  +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="137.5" cy="110" 
r="20" style="fill:crimson"
  
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onmouseover="showDialog('onmouseover')"/&gt;
  +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="312.5" cy="110" 
r="20" style="fill:crimson"
  
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onmouseout="showDialog('onmouseout')"/&gt;
   &nbsp;&nbsp;&nbsp;&nbsp;&lt;/g&gt;
   &nbsp;&nbsp;&nbsp;&nbsp;&lt;g transform="translate(0 160)"&gt;
  -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="137.5" cy="110" 
r="20" style="fill:crimson" onmousemove="showDialog('onmousemove')"/&gt;
  -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="312.5" cy="110" 
r="20" style="fill:crimson" onclick="showDialog('onclick')"/&gt;
  +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="137.5" cy="110" 
r="20" style="fill:crimson"
  
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onmousemove="showDialog('onmousemove')"/&gt;
  +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;circle cx="312.5" cy="110" 
r="20" style="fill:crimson"
  
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onclick="showDialog('onclick')"/&gt;
   &nbsp;&nbsp;&nbsp;&nbsp;&lt;/g&gt;
   &lt;/svg&gt;
   </source>
  @@ -190,4 +195,4 @@
              </s2>
           </s1>
       </body>
  -</document>
  \ No newline at end of file
  +</document>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to