Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Size is duplicated by 3.77 factor (Read 3874 times)
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Size is duplicated by 3.77 factor
May 9th, 2007 at 5:55am
Print Post  
I've set a size of a chart using the setDocBounds() method.
What I discovered is that any value I enter there is multiplied by 3.77.
For example - when I entered there 100x120 rectangle, I got on screen a rectangle of sizes 377x453.
Why is that?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Size is duplicated by 3.77 factor
Reply #1 - May 9th, 2007 at 6:06am
Print Post  
The FlowChart has a MeasureUnit attribute, that specifies the logical unit of measure used for the size of the diagram and its elements. It is set to Millimeter by default, so calling setDocBounds(100x120) probably sets the size to 100x200 millimeters. You could call setMeasureUnit(MeasureUnit.Point), but then you will need to set the default item-size properties too, such as ArrowHeadSize, so they reflect the new unit.
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Size is duplicated by 3.77 factor
Reply #2 - May 15th, 2007 at 12:41pm
Print Post  
I saw now that I forgot to answer that...
You were right, and it worked well after that.

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