Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Overview scrolling (Read 11813 times)
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Overview scrolling
Jul 25th, 2007 at 8:17am
Print Post  
Hi,

I have a flowChart and I want to find a box in the diagram.

So this is the code :

Code
Select All
Box tache = _flowChart.findBox(numero);
if (tache != null) {
      _flowChart.bringIntoView(tache);
      tache.setSelected(true);
      overview.update();
}
 



The rectangle in the overview is well positionned but the overview do not scroll to the rectangle. So it is not visible.

This is the creation code of the overview
Code
Select All
overview = new Overview();
overview.setFitAll(false);
overview.setScaleFactor(5);
overview.setDimColor(new Color(100, 100, 100));
overview.setDocument(_flowChart);
overview.setDimColor(new Color(16776682, true));
overview.setBackground(new Color(16776682));
overview.setLocation(810, 0);
overview.setSize(200, 200);
overview.setShowScrollbars(true);
overview.setVisible(true);
 



I noted also that there as some problems of redrawing the overview like scrollbars, items drawned out of the overview...

I can send you copies of the screen.

Regards.

JR
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview scrolling
Reply #1 - Jul 25th, 2007 at 9:26am
Print Post  
Hi,

The Overview scroll position is independent from the tracking rectangle position. We will have to add some new method in order to let you scroll to the tracking rectangle.

Please email me as XML file the diagram with which you are getting redrawing problems.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview scrolling
Reply #2 - Jul 25th, 2007 at 11:57am
Print Post  
We have received the files but can't reproduce that problem. We fixed some drawing bug in the overview a few weeks ago - maybe you are using an older version? Could you check if that will work better with the jar file from https://mindfusion.org/_temp/OvwApplet.zip?

Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Overview scrolling
Reply #3 - Jul 25th, 2007 at 12:15pm
Print Post  
Hi,

I'm working with the last version of the overview (I've loaded this morning the version with the overview applet). The old version had the same problem.

I 'm working with the SUN JDK version 1.6.0_01-b06. Maybe it is important ?

Regards

JR
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview scrolling
Reply #4 - Jul 25th, 2007 at 12:24pm
Print Post  
Are you doing any custom drawing?

Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Overview scrolling
Reply #5 - Jul 25th, 2007 at 12:40pm
Print Post  
What do you call a custom drawing ?

I don't use yours layouts.

I have a personal layout : a matrix is done with tasks and links between tasks. After i draw the tasks (boxes) and the links (arrowes).

The graph I give you is very simple comparating with definitive graphs use (hundred of tasks and links).

If you tell about designing shapes, i have created 2 shapes with your shape designer (East and WestTriangle)

Regards

JR
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview scrolling
Reply #6 - Jul 25th, 2007 at 2:38pm
Print Post  
I've meant handling the DrawBox event. Anyway could you email us a test project that reproduces the problem?

Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Overview scrolling
Reply #7 - Jul 26th, 2007 at 6:50am
Print Post  
Hi,

I sent you now a java source to reproduce the problem

Regards

JR
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview scrolling
Reply #8 - Jul 26th, 2007 at 12:47pm
Print Post  
Please check if this version works better:
https://mindfusion.org/_temp/jar.zip

Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Overview scrolling
Reply #9 - Jul 26th, 2007 at 1:42pm
Print Post  
The overview is now functionning normally.

The tag for a box is not still saved in a save xml (xmlwriter)

Regards

JR

PS : if there is a big number of boxes (9 lines of 255 boxes with the same separation like the sample of this morning), the bringIntoView function does not work correctly.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview scrolling
Reply #10 - Jul 27th, 2007 at 4:47am
Print Post  
Tags are not saved automatically in XML format. You must handle the serializeTag and deseriailzeTag events to convert the Tag data to/from XML.

Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Overview scrolling
Reply #11 - Jul 27th, 2007 at 5:49am
Print Post  
Have you some example ?

JR
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview scrolling
Reply #12 - Jul 28th, 2007 at 1:26pm
Print Post  
You must implement the XmlWriterListener and XmlReaderListener interfaces and their serializeTag/deserializeTag methods. We are porting one of the Flowchart.NET projects that implements tag serialization and will post it here in a couple of days.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview scrolling
Reply #13 - Jul 31st, 2007 at 12:39pm
Print Post  
Here is a sample project demonstrating tag serialization to/from XML:

https://mindfusion.org/_samples/SiteMap.zip

Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Overview scrolling
Reply #14 - Aug 1st, 2007 at 7:47am
Print Post  
Thanks, it works.

JR
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint