Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Overview diagram shrinks when zooming out (Read 13540 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview diagram shrinks when zooming out
Reply #15 - Nov 1st, 2007 at 2:27pm
Print Post  
I don't think the other changed classes would make the overview control disappear. What additions do you have in your extended Overview class? Are you using any of the changed classes there?

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



Posts: 163
Joined: May 2nd, 2007
Re: Overview diagram shrinks when zooming out
Reply #16 - Nov 4th, 2007 at 7:59am
Print Post  
This is the init function of the extended class:

setFitAll(true);
setShowScrollbars(true);
setDimColor(ADColors.DIAGRAM_OVERVIEW_DIM);
setBackground(ADColors.DIAGRAM_BACKGROUND);
setDocument(_chart);
setTrackingRectPen(new Pen(0, ADColors.DIAGRAM_OVERVIEW_SELECTION));
setPreferredSize(new Dimension(DiagramViewPanel.RIGHT_PANEL_WIDTH,DiagramViewPanel.OVERVIEW_HEIGHT));


Besides the init, I have another method:
public float getAspectRatio() {
  Rectangle bounds = this.getVisibleRect();
  return (float)bounds.width / (float)bounds.height;
}


That's it.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview diagram shrinks when zooming out
Reply #17 - Nov 5th, 2007 at 10:10am
Print Post  
Hi,

Here is a test project that displays two overview controls, the first one in a new frame window, and the second one in the same window as the flowchart:

https://mindfusion.org/_temp/TestOverview.zip

Both are initialized with the same code as yours, and both display ok. Could you check if they work fine with your version of the .jar file? Could you also try loading a diagram file of yours into the flowchart in that project?

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



Posts: 163
Joined: May 2nd, 2007
Re: Overview diagram shrinks when zooming out
Reply #18 - Nov 8th, 2007 at 2:46pm
Print Post  
Hi,

I've tried running it - and it showed fine.
I tried loading my chart. That was a bit difficult because the tags my boxes have are complex obkects. I replace all tags with null, saved it and reopenned in your sample - and the Overview looked fine.
Are you doing something with the tags in the Overview? Maybe this caused an exception?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview diagram shrinks when zooming out
Reply #19 - Nov 8th, 2007 at 4:11pm
Print Post  
Hi,

The Overview doesn't do anything with the Tags. What happens if you replace the extended overview with the standard one in your application?

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint