Hi Thomas, I will give you more details

My Class SVGPanel that extends JSVGCanvas is placed in a JInternalFrame.

In SVGPanel I've added listeners 

        this.addSVGLoadEventDispatcherListener
        this.addSVGLoadEventDispatcherListener 
        this.addGVTTreeBuilderListener
        this.addGVTTreeBuilderListener

just to know when the load phase strats , or when the rendering
processes sotps ...

The MainFrame class (that extends a JFrame)  calls the SVGPanel and
the ThumbnailDialog:
 ....................
  JInternalFrame frameTemp = mainDesktop.getSelectedFrame();
  JRootPane panTemp = (JRootPane) frameTemp.getComponent(0);
  SVGPanel svgTemp = (SVGPanel) panTemp.getContentPane().getComponent(0);
  tb = new ThumbnailDialog (this, svgTemp);
..................

Should I implement those listeners in The MainFrame ?
Just the way squiggle does? 

Should I do something else I am not doing when I've implented those listeners?

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.


Thanks for trying help me!

On Wed, 16 Mar 2005 08:08:50 -0500, Thomas DeWeese
<[EMAIL PROTECTED]> wrote:
> Hi Danilo,
> 
>     Thanks, this is much clearer what you are seeing unfortunately
> I can't imagine what is causing it.
> 
> > <[EMAIL PROTECTED]> wrote:
> >
> >>Danilo Costa wrote:
> >>
> >>>I am trying to use ThumbNailDialog.
> 
> >>    Can you describe the behavior in greater detail?
> 
> Danilo Costa wrote:
> 
> >  I move the rectangle (the visible area) over the thumbnail once, and
> > the main canvas (that one with the SVG) is updated the way it should
> > be. So I do it again, I move, or better, I try to move that rectangle
> > over thumbnail again, and it doesnt work , the rectangle stay in the
> > same place.
> 
>     My suggestion would be to add print statements to the ThumbnailDialog
> AreaOfInterestListener class to see if the mouseXXX methods are being
> called as they should be.  My first suspcion is that 'in' is always
> turning out to be false, but I don't see why.
> 
>     You mentioned that you actually had a subclass of the JSVGCanvas,
> can you outline what behavior you are changing in your subclass?
> This is most likely the cause of the problem.
> 
> >  Sorry, I think the word I should use is updated!
> >  I interact over the main SVG canvas and the thumbnail is not updated
> > with the new changes, such as pan and zoom, the thumbnail doesnt show
> > any change.
> 
>     This makes it sound like either synchronize methods might not be
> getting called.  They depend on the GVT Rendering events being sent.
> 
> 
> ---------------------------------------------------------------------
> 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

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

Reply via email to