Ah ha. Thanks! 

-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 9:46 AM
To: Batik Users
Subject: Re: Problems with loading documents...

Caron, Michael R wrote:

> And how do I get the SVGDocumentLoader object? 

    As I said the source of the event is the loader/builder object.  You
can get the source with the standard 'event.getSource()' call (you will
have to downcast).

> 
> -----Original Message-----
> From: Thomas DeWeese [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 31, 2005 8:00 PM
> To: Batik Users
> Subject: Re: Problems with loading documents...
> 
> Hi Michael,
> 
> Caron, Michael R wrote:
> 
> 
>>How do you get the error from the event if a certain step in the SVG 
>>loading process fails? Namely, capturing the error data from the 
>>following methods:
>>
>>    public void gvtRenderingFailed(GVTTreeRendererEvent e) {}    
> 
> 
>     You can't for this one right now.  I'll fix this so it's like the 
> ones below.
> 
> 
>>    public void documentLoadingFailed(SVGDocumentLoaderEvent e) {}
>>    public void gvtBuildFailed(GVTTreeBuilderEvent e) {}
> 
> 
>     The source of the event is the SVGDocumentLoader object which has 
> a 'getException' method that returns the exception responsible if 
> there is one (there always is for failed events).
> 
> 
>>I was getting gvtBuildFailed callbacks, but I didn't know how to get 
>>information about what was going on...
> 
> 
>     It also (not so gracefully) echos the problem to System.err.
> 
> 
> ---------------------------------------------------------------------
> 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]
> 


---------------------------------------------------------------------
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