Hi Thomas

I forgot to mention that our svg is dynamic! We've noticed that if we
set the document state to ALMAYS_STATIC :

 setDocumentState(JSVGCanvas.ALWAYS_STATIC)

the thumbnail is updated properly. But if it is set to be ALWAYS_DYNAMIC

  setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC) 

it doesn't work when we use the zoom or pan in the svg (the way I've
mentioned before).



On Thu, 17 Mar 2005 10:25:25 -0300, Danilo Costa <[EMAIL PROTECTED]> wrote:
> ---------- Forwarded message ----------
> From: Thomas DeWeese <[EMAIL PROTECTED]>
> Date: Thu, 17 Mar 2005 05:58:55 -0500
> Subject: Re: ThumbNail -- What is wrong?
> To: [email protected]
> 
> Danilo Costa wrote:
> > In SVGPanel I've added listeners
> 
>     So you haven't really modified the behavior of the Canvas
> in any way, just added a few new listeners?
> 
>     Is it possible your listeners are throwing an exception?
> The thumbnail knows to update it's self when it receives
> those events.  At this point I think you will be best served
> adding lots of System.err.println to ThumbnailDialog to see
> where it is failing.
> 
> > The MainFrame class (that extends a JFrame)  calls the SVGPanel and
> > the ThumbnailDialog:
> >  ....................
> >   JInternalFrame frameTemp = mainDesktop.getSelectedFrame();
> 
>     So this has been bothering me a little.  I've never used
> the thumbnail dialog in an internal frame before.  I can't
> imagine why this would matter but it appears to be one of the
> few differences between what squiggle (which works) does and
> what your app (which doesn't work) does.
> 
>    You might try creating a normal JFrame.
> 
> > Should I implement those listeners in The MainFrame ?
> > Just the way squiggle does?
> 
>     I don't think the listeners are likely to be the problem.
> Unless they are disrupting the event dispatch.
> 
> > Should I do something else I am not doing when I've implented
> > those listeners?
> 
>     No, I just wanted to make sure you weren't mucking with
> say the way zoom or pan works.
> 
> > I've noticed that if I change de size of the JInternalFrame, the size
> > of the svg also changes and the thumbnailDialog is updated! But it
> > still doesnt work if I perform some zoom.
> 
>     This means that at least some of the listeners are working.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> --
> "...YOU CANNOT KNOW THE MEANING OF YOUR LIFE UNTIL YOU ARE CONNECTED
> WITH THE POWER THAT CREATED YOU..."
> Shri Mataji Nirmala Devi
> 


-- 
"...YOU CANNOT KNOW THE MEANING OF YOUR LIFE UNTIL YOU ARE CONNECTED
WITH THE POWER THAT CREATED YOU..."
Shri Mataji Nirmala Devi

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

Reply via email to