Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Zoom on FlowCharter Diagram View (Read 5283 times)
SandeepGowda
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Jan 6th, 2009
Zoom on FlowCharter Diagram View
Feb 23rd, 2009 at 7:26am
Print Post  
Hi
  Can we have A Zoom on FlowCharter/TaskShape Nodes.
Regards
Sandeep
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Zoom on FlowCharter Diagram View
Reply #1 - Feb 23rd, 2009 at 9:03am
Print Post  
Hi Sandeep,

You could call DiagramView.ZoomToRect(node.Bounds).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
SandeepGowda
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Jan 6th, 2009
Re: Zoom on FlowCharter Diagram View
Reply #2 - Feb 23rd, 2009 at 10:58am
Print Post  
hi,

m_mainJDiagramView(diagram instance).zoomToFit(new Rectangle2D.Double(50,50,50,50));

i tried by using above code, its not working. can you please help me if i am wrong.

regards
sandeep
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Zoom on FlowCharter Diagram View
Reply #3 - Feb 23rd, 2009 at 11:33am
Print Post  
So you are using our JDiagram control? Have you placed the DiagramView inside a JScrollPane? - I think that's required for the scroll, zoomtorect and bringIntoView methods to work.
  
Back to top
 
IP Logged
 
SandeepGowda
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Jan 6th, 2009
Re: Zoom on FlowCharter Diagram View
Reply #4 - Feb 23rd, 2009 at 12:09pm
Print Post  
hi,
Code snippet:

// holds Jdiagram.
JideScrollPane jideJdiagramScrollPane = new JideScrollPane();
jideJdiagramScrollPane.getViewport().add(m_mainJDiagramView);

i have added as above,still not working

regards
sandeep
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Zoom on FlowCharter Diagram View
Reply #5 - Feb 23rd, 2009 at 12:13pm
Print Post  
Does JideScrollPane derive from JScrollPane?
  
Back to top
 
IP Logged
 
SandeepGowda
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Jan 6th, 2009
Re: Zoom on FlowCharter Diagram View
Reply #6 - Feb 23rd, 2009 at 12:45pm
Print Post  
Yes,
JideScrollPane derive from JScrollPane

regards
sandeep
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Zoom on FlowCharter Diagram View
Reply #7 - Feb 23rd, 2009 at 1:16pm
Print Post  
Is the JideScrollPane class from this package?
http://www.jidesoft.com/products/oss.htm
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Zoom on FlowCharter Diagram View
Reply #8 - Feb 23rd, 2009 at 3:33pm
Print Post  
We have tried that JideScrollPane and zoomToRect worked as expected. Could you email us a sample project that shows your problem?

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint