Hi Helder!

2009/8/20 Helder Magalhães <[email protected]>:
> Hi Mathieu,
>
>
> Note that you provide little information about Batik version being
> used (SVN checkout? Which revision number?). Also, you don't state
> whether you are following the instructions in "Scripting With Java"
> [1] (although you seem to, according to the "public void run(){" which
> I imagine it's a runnable implementation. Although it's a bit of
> overhead, please always try to state this, and other potentially
> useful information (Java version, operating system, etc.).
>
>

I gave very few informations about batik version (and so on) because i
thought it was a mistake in my code (when I define the two
animateColor nodes) ! If you think it may help:

So I work with batik 1.7, and the JDK 6, with a linux OS.

I work on the Netbeans IDE (5.0), but the project was created with NB 6.

I used this way of adding notes to documents, found in the "Scripting
with Java", some times without any problem (but it was only for nodes
as rect, circles, mask, clip-path). Here, the point is that for this
animateColor node, i get a NullPointerException when i use the
appendChild method.

>> Let's see my code :
> [...]
>>            toColor2.setAttributeNS(null, "id","blink2");
> [...]
>>            toColor2.setAttributeNS(null, "begin", "0s;blink1.end");
> [...]
>>            toColor1.setAttributeNS(null, "id","blink1");
> [...]
>>            toColor1.setAttributeNS(null, "begin", "blink2.end");
>
> Aren't the "blink#" in identifiers and SMIL begin creating a circular
> reference? I'd suggest you created a static SVG file (declaratively)
> in order to check if this works (if you create a sample file you'll be
> able to test not just Squiggle but also Opera, IE+ASV, Firefox nightly
> builds, etc.). ;-)
>

That's it! I want to make a blinking (is that the word for "clignoter"
?) effect on my document. I allready tried to do so by writing a svg
document with a text editor, and it worked very well on Squiggle and
Firefox.

>
>> Can you help me, please, to find the mistake? I dont see what could be
>> the problem (nothing is null in the appendChild method I call...) ! I
>> often add nodes to documents in my projects, and it's the first time i
>> had to face this kind of error.
>
> Twice? ;-)
>

I don't understand.

>
> Hope this helps,
>  Helder Magalhães

Thank you again!

>
>
> [1] http://xmlgraphics.apache.org/batik/using/scripting/java.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to