Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Jdiagram sizing issue. (Read 3160 times)
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Jdiagram sizing issue.
Mar 31st, 2010 at 9:05am
Print Post  
Hi,


Jdiagram's diagram behaves in different manner on different platforms.

I have used the two linktables for source and target mappings.

the size of the tables are relative to the diagram.
It appears proper on window , but differ on Linux ( for fedora it stretches and on Red Hat it shrinks).

Is there any solution over this.


thanks.
  
Back to top
 
IP Logged
 
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
Re: Jdiagram sizing issue.
Reply #1 - Mar 31st, 2010 at 9:30am
Print Post  
it may be resolution issue.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Jdiagram sizing issue.
Reply #2 - Mar 31st, 2010 at 10:52am
Print Post  
Are you using the default MeasureUnit value?
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: Jdiagram sizing issue.
Reply #3 - Mar 31st, 2010 at 11:10am
Print Post  
I am not specifying MeasureUnit so it must be using default.



I also tried with GraphicsUnit.Point and GraphicsUnit.Pixel but it doesn't work properly.

can you please specify which unit to used.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Jdiagram sizing issue.
Reply #4 - Mar 31st, 2010 at 12:09pm
Print Post  
The control calls Toolkit.getScreenResolution() to determine what scale to apply for each unit, and that method should be getting the DPI from a system setting somewhere.

You might set the unit to Pixel, and the graphics won't be scaled, but use the Java Point unit. The point should be always a 72 DPI, but it might depend on the same system setting returned by getScreenResolution(). If you change the unit, you must also update all size values used in the diagram so that they correspond to the new unit.

Stoyan
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: Jdiagram sizing issue.
Reply #5 - Mar 31st, 2010 at 1:25pm
Print Post  
can you please give an example how can i set the bounds for linktable according to different OS.
   

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Jdiagram sizing issue.
Reply #6 - Mar 31st, 2010 at 6:03pm
Print Post  
I can't. You will have to somehow set the correct DPI value for the display on that system. As a lost resort, you can use ZoomFactor to fix the scale. However if Toolkit.getScreenResolution() does not work, you won't be able to automatically find out what's the correct scale.

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