Hi,
I have an SVG file containing some slides. Each slide
is defined as a group having an image and some marking
annotations defined by path elements. I want to show
these slides images and annotations one by one at
predefined timings on a JSVGCanvas. I tried something
like this:
for(int i=0;i<numberOfSlides;i++)
{
//Get the slide with index 'i'
//Wait till the slide begin time
//Get all the annotation paths in this slide
                                
canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(new
Runnable()
{ public void run(){
        window.setInterval(new Animation(), 20);
}
}

The "Animation" routine is supposed to make some
changes in the path elements and show the updated
paths on the corresponding slide. However, when I try
running this code, all I can see is the last slide
only. Rest of the slides are not shown(perhaps because
invokeLater returns immediatedy and hence any changes
in previous slides do not take place at all. I tried
invokeAndWait also but in that case I can't see even
the last slide. Perhaps, in this case, one thread
keeps hold of the lock and other threads don't get
access to it.

Could someone please help me out?
Thanks,
--Piyush.


        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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

Reply via email to