xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caron, Michael R" <michael.r.ca...@lmco.com>
Subject RE: Problems with loading documents...
Date Tue, 01 Feb 2005 15:49:45 GMT
Ah ha. Thanks! 

-----Original Message-----
From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com] 
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:Thomas.DeWeese@Kodak.com]
> 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: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 


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




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


Mime
View raw message