Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Dimensions of visible chart (Read 4881 times)
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Dimensions of visible chart
Jun 14th, 2007 at 6:19am
Print Post  
Is there a way to know the dimensions of the visible chart? When I use getBounds I get the entire chart.
I need it to find the coordinates of the center point on the screen.

thanks,
Yoav
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dimensions of visible chart
Reply #1 - Jun 14th, 2007 at 6:41am
Print Post  
Try flowchart.getVisibleRect(), or flowchart.deviceToDoc(flowchart.getVisibleRect()) if you need it in document coordinates.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Dimensions of visible chart
Reply #2 - Jun 14th, 2007 at 6:53am
Print Post  
I forgot about this method.
Thanks!
Yoav
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Dimensions of visible chart
Reply #3 - Jun 14th, 2007 at 7:01am
Print Post  
When I run chart.getVisibleRect(), I get this dimension:
0,2304,893,551
What does y=2304 mean?

Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dimensions of visible chart
Reply #4 - Jun 14th, 2007 at 7:05am
Print Post  
I guess that could happen if the flowchart is inside a JScrollPane and you have scrolled down a bit.

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



Posts: 163
Joined: May 2nd, 2007
Re: Dimensions of visible chart
Reply #5 - Jun 14th, 2007 at 7:07am
Print Post  
Ah, ofcourse.
Embarrassed
silly me.
8)

Thank again.
Yoav
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint