Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Overview tracking rectangle is twisted (Read 8587 times)
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Overview tracking rectangle is twisted
Jun 3rd, 2007 at 9:45am
Print Post  
When I zoom in and zoom out of the FlowChart, the overview Tracking rectangle starts changing the height/width ratio incorrectly - and becomes fatter or thinner - not according to the chart.
Here's an example:
http://albums.tapuz.co.il/Albums/getImage.asp?a=1248443&b=0&c=124844320076314373...

(The red rectangle is the the tracking rectangle - I've changed its size)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview tracking rectangle is twisted
Reply #1 - Jun 4th, 2007 at 5:22am
Print Post  
The control should automatically do that, but for now call Overview.update() after zooming or changing the measure unit.
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Overview tracking rectangle is twisted
Reply #2 - Jun 4th, 2007 at 5:41am
Print Post  
I will try that, thanks.
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Overview tracking rectangle is twisted
Reply #3 - Jun 6th, 2007 at 11:45am
Print Post  
I still get this twisted overview:

http://albums.tapuz.co.il/Albums/getImage.asp?a=1248443&b=0&c=124844320076616441...
(pay attention to the red triangle in the overview).
I'm not sure when this happens - I think that it's usually when the diagram doesn't have the aspect ratio of the Overview.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview tracking rectangle is twisted
Reply #4 - Jun 6th, 2007 at 12:37pm
Print Post  
What are the document size and the overview frame size?

Thank you,
Stoyan
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Overview tracking rectangle is twisted
Reply #5 - Jun 6th, 2007 at 1:22pm
Print Post  
Ok, it goes like this:
Chart.getBounds() returns [3219,2195].
BTW, I see there that the Y value is -1856 - is that normal?
chart.getZoomFactor() returns 170.0
overview.getBounds() returns [256, 149]
overview.getScaleFactor() returns 98.6664

When I zoom-in - the Overview tracking triangle starts to get distorted - the width of the rectangle stays the same while the height is getting smalled.
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Overview tracking rectangle is twisted
Reply #6 - Jun 7th, 2007 at 5:30am
Print Post  
I got the steps that cause it.
When I zoom in, the zoom-in happens from the start of the diagram - and this means that the entire diagram is zoomed and moves.
Explanation: If I stand with a box almost in the view on the top left, zooming in will most probably enter the box inside the view since the entire diagram stretches.

This doesn't happen on the Overview rectangle. The bottom and right edges of the rectangle change their position correctly, while the top and left edges stay in place. So in the example I gave before, the Box will enter the view, but the Overview will show it still outside of view.
Moreover - the Rectangle dimensions will distort.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview tracking rectangle is twisted
Reply #7 - Jun 7th, 2007 at 6:21am
Print Post  
Do you use Point as the measure unit?
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Overview tracking rectangle is twisted
Reply #8 - Jun 7th, 2007 at 6:27am
Print Post  
Yup.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview tracking rectangle is twisted
Reply #9 - Jun 7th, 2007 at 10:09am
Print Post  
This version should work better:
http://www.mindfusion.org/_temp/JDiagram.jar

Stoyan
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Overview tracking rectangle is twisted
Reply #10 - Jun 7th, 2007 at 10:44am
Print Post  
Still - the same thing happens.
Look here:
http://www.tapuz.co.il/albums/album/default.asp?a=475917&u=1248443&ao=1
In this directory I hacve inserted 8 pictures, showing 8 zoom steps (from pictures 1, zooming in to picture 8 ). See how the Overview rectangle becomes "squashed" and disappears.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview tracking rectangle is twisted
Reply #11 - Jun 7th, 2007 at 12:25pm
Print Post  
Better don't use those last few preview builds at all. We have recently changed the type of all item coordinates from float to double, and now we've found some more issues sprung up in the process.

Stoyan
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Overview tracking rectangle is twisted
Reply #12 - Jun 7th, 2007 at 1:36pm
Print Post  
OK. I'll be waiting for a new version when you'll have a stable one.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint