Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Scroll link tables slow down the performance. (Read 9426 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scroll link tables slow down the performance.
Reply #15 - Mar 25th, 2010 at 10:33am
Print Post  
Perhaps you could use the diagram.measureString method for this, or the FontMetrics class from the Java Graphics2D API which you would call indirectlly through measureString?
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: Scroll link tables slow down the performance.
Reply #16 - Mar 26th, 2010 at 8:04am
Print Post  
But how can I use diagram.measureString as the diagram area is divided between the 2 linktables and mapping links.

I tried but its not working.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scroll link tables slow down the performance.
Reply #17 - Mar 26th, 2010 at 9:39am
Print Post  
How were you using ShapeNodes and JTextAreas? If you need to measure the height for a fixed width, I suppose you will have to loop over the string characters and measure its substrings until they fit into the width, then advance the height with the returned Dimension2D.height.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint