Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic zoom out (Read 1905 times)
tmtton
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 39
Joined: May 9th, 2008
zoom out
May 21st, 2008 at 3:54pm
Print Post  
When a lower zoom factor is chosen (less than 100%), the flowchart is shrunk correctly. But leave the unoccupied area white, is there a way to avoid that? Either use the default flowchart background color, or in a case where a background image is set, leave the background image in-place and only shrink the diagram.


--- code snippet ---
// This is the default flowchart size.
flowChart.setDocBounds(new Rectangle2D.Float(0,0,800,600));
flowChart.setSize(new Dimension(800,600));

// Call these to zoom out
flowChart.setZoomFactor(50.0);
flowChart.repaint();
------
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: zoom out
Reply #1 - May 21st, 2008 at 7:16pm
Print Post  
Actually the unoccupied area is painted by the flowchart's container (usually a JScrollArea). So, set the container's color to be the same as the flowchart's background color.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint