xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: How to send event from embedded Javascript to Java
Date Wed, 14 Nov 2007 11:04:32 GMT
Hi Tonny,

"Tonny Kohar" <tonny.kohar@gmail.com> wrote on 11/14/2007 01:54:50 AM:

> Is there a difference between the BridgeContext (as in the Wiki) and
> the BridgeContext bctx = canvas.getUpdateManager().getBridgeContext();

   Yes, they are different instances.

> Or it is the same bridgeContext, do some code in batik change the
> bridgeContext during the document loading ? so the bridgeContext (as
> in Wiki) is no longer valid bridgeContext after the document finished
> loading ?

   When the canvas loads a document it creates it's own BridgeContext.
Each document instance can only have one BridgeContext associated with
it.  So if a BridgeContext was created, like shown in the wiki, before
giving the Document Object to the canvas then the original 'wiki' 
BridgeContext would be invalid after the load completes (some stuff 
would be right but lots would be wrong).

View raw message