Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to zoom out a diagram without hiding items? (Read 2105 times)
RickSalut
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Location: CANADA
Joined: Dec 10th, 2014
How to zoom out a diagram without hiding items?
Jan 13th, 2015 at 8:41pm
Print Post  
Hi,

I'm currently developing an application to display diagrams that can be quite large and I'm having problem when zooming out these diagrams.

As you can see in the attached photo, the zoommer slider gets in the way of my diagram and I don't want that. I've tried to fix this by setting margins according to the percentage of my form (diagram.resizeToFitItems(screenWidth*0.03f)) but it is not really working as it the diagram glitches when refreshing.

I'm looking for a more elegant way of avoiding my diagram to be displayed under the zoomer. Do you guys have an idea?

Thank's a lot.
  

capture_zoomer_problem.PNG ( 20 KB | 126 Downloads )
capture_zoomer_problem.PNG
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to zoom out a diagram without hiding items?
Reply #1 - Jan 14th, 2015 at 8:04am
Print Post  
Hi,

You could use BorderLayout and add zoom control to the left-hand side:

Code
Select All
mainPanel.setLayout(new BorderLayout());

JPanel zoomPanel = new JPanel();
zoomPanel.setBackground(Color.white);
zoomer.setPreferredSize(new Dimension(60, 300));
zoomPanel.add(zoomer);
zoomPanel.setPreferredSize(new Dimension(60, 300));

mainPanel.add(zoomPanel, BorderLayout.WEST);
mainPanel.add(diagramScrollPane); 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint