Re: org.apache.fop.viewer.PreviewDialog

2002-11-27 Thread Oleg Tkachenko
IvanLatysh wrote: Yes, reload method will call starter.run(); And page in the renderer will be altered with a new one. Try to comment starter.run(); in PreviewDialog and see what happened. But why? starter.run() runs clean formatting, isn't it what you want? Scale image are mandatory. Without

Re: org.apache.fop.viewer.PreviewDialog

2002-11-25 Thread IvanLatysh
Hello, Oleg! You wrote to [EMAIL PROTECTED] on Fri, 22 Nov 2002 20:22:27 +0200: OT IvanLatysh wrote: OT Why? awt viewer succesfully reuse it while reloading fo document, OT it just cleans renderer by removing all rendered pages. It does work only in a case when you didn't change scale, if

Re: org.apache.fop.viewer.PreviewDialog

2002-11-22 Thread Oleg Tkachenko
IvanLatysh wrote: I wrote panelPreview which I am going to use instead of PreviewDialog. What is the difference? Actually awt viewer redesign task to get it reusable is in our todo list [1], so if you can help - share you ideas. And I am experience a major problem with AWTRenderer, this

Re: org.apache.fop.viewer.PreviewDialog

2002-11-22 Thread IvanLatysh
Hello, Oleg! You wrote to [EMAIL PROTECTED] on Fri, 22 Nov 2002 18:37:32 +0200: OT IvanLatysh wrote: I wrote panelPreview which I am going to use instead of PreviewDialog. OT What is the difference? Actually awt viewer redesign task to get it OT reusable is in our todo list [1], so if

Re: org.apache.fop.viewer.PreviewDialog

2002-11-22 Thread Oleg Tkachenko
IvanLatysh wrote: OT Why? awt viewer succesfully reuse it while reloading fo document, it OT just cleans renderer by removing all rendered pages. It does work only in a case when you didn't change scale, if you did, even after removing pages you got the last page in a renderer :-) Hm,

Re: org.apache.fop.viewer.PreviewDialog

2002-11-21 Thread IvanLatysh
Hello, Oleg! You wrote to [EMAIL PROTECTED] on Wed, 20 Nov 2002 18:02:59 +0200: Just curious - why you recreate the dialog? You can use 1 instance and to show/hide it by setVisible(boolean) method. But you maight be right, because PreviewDialog is not designed to be reusable and

org.apache.fop.viewer.PreviewDialog

2002-11-20 Thread IvanLatysh
Hi all. I am using FOP with my application and for better performance I did a singleton which have an instance of the Driver, Renderer and etc. It seens working fine, each time before I run a new report I am reset the Driver. But I found problems with PreviewDialog it seems that dialog didn't

Re: org.apache.fop.viewer.PreviewDialog

2002-11-20 Thread Oleg Tkachenko
IvanLatysh wrote: Hi all. I am using FOP with my application and for better performance I did a singleton which have an instance of the Driver, Renderer and etc. It seens working fine, each time before I run a new report I am reset the Driver. But I found problems with PreviewDialog it seems

Re: org.apache.fop.viewer.PreviewDialog

2002-11-20 Thread Oleg Tkachenko
IvanLatysh wrote: I am using FOP with my application and for better performance I did a singleton which have an instance of the Driver, Renderer and etc. It seens working fine, each time before I run a new report I am reset the Driver. But I found problems with PreviewDialog it seems that dialog

Re: org.apache.fop.viewer.PreviewDialog

2002-11-20 Thread Oleg Tkachenko
Oleg Tkachenko wrote: Just curious - why you recreate the dialog? You can use 1 instance and to show/hide it by setVisible(boolean) method. But you maight be right, because PreviewDialog is not designed to be reusable and recreatable. Anyway, look at reload functionality, it solves the same