xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Critchlow" <...@elf.org>
Subject Re: modifying css in live svg document
Date Wed, 10 May 2006 06:40:14 GMT
How odd.

The modification is definitely running on the right thread.  It's
launched from an ActionEvent, but it gets tossed onto the right thread
before it modifies the style CDATA.

I'll work up a minimal example.

Thanks,

-- rec --

On 5/9/06, sugawara <sugawara@humane-systems.co.jp> wrote:
> Hi Roger,
>
> >
> > So I need to tweak the rendered elements so they pick up the new style?
> >
> I don't think so. At least, with my program, the result of the changed style
> can be seen immediately without any mouse operation.
> My program calls changeTextColor method which is that I told you before
> in a popup menu action listener like as follws:
>
>   RunnableQueue runQ = canvas.getUpdateManager().getUpdateRunnableQueue();
>   runQ.invokeLater(new Runnable(){public void run() {
>     changeTextColor(SVGDocument document, Color.red);
>   }});
>
> There is no magic other than above.
>
> > modifying it with the CDATA mutation operators in the DOM
> > updateThread.
> >
> > But I don't see any change in the rendered graphics until I trigger a
> > redraw with a mouseover.
> >
> I'm not sure why, but I can suspect that your modifying is not run under
> SVG canvas's UpdateManager thread.
> Is your 'DOM updateThread' right thread?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message