Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic unable to display full flowchart on diagram view (Read 2077 times)
Ashutosh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Nov 24th, 2008
unable to display full flowchart on diagram view
Nov 25th, 2008 at 7:00am
Print Post  
I m facing a problem while displaying the flow chart on Diagram View.
There are some ShapeNodes using those i m making Flowchart , i included those on Diagram View.
Also i added Diagram View with Scrollpane so that to get the whole diagram, it is also
showing the Scrollpane but not showing the whole flowchart.
It is succesfully drawing the whole Flowchart but not showing the whole flowchart.

So what should i do to get the whole Flow chart with ScrollPane embedded in it on my frame.

This is how i am adding it my Frame

Diagram diag = new Diagram();
DiagramView diagView = new DiagramView(diag);
JScrollPane scrPane = new JScrollPane(diagView);
new Frame.add(scrPane);
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: unable to display full flowchart on diagram vi
Reply #1 - Nov 25th, 2008 at 7:21am
Print Post  
This control renders only the part of the chart inside the Bounds rectangle. You could set a larger size using Diagram.setBounds(), or call Diagram.resizeToFitItems() after creating all items.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Ashutosh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Nov 24th, 2008
Re: unable to display full flowchart on diagram vi
Reply #2 - Dec 2nd, 2008 at 6:42am
Print Post  
It works fine. Thanx for your help.

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