Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Is there a way to raise the resolution of print preview in JDiagram (Read 6644 times)
Patrick Guerin
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Dec 11th, 2014
Is there a way to raise the resolution of print preview in JDiagram
Dec 16th, 2014 at 4:01pm
Print Post  
Hi, we are using the component JDiagram (Swing) and want to activate the print preview option. It works correctly, but the resolution of the preview is absolutely terrible. Look at the attachment file inside the post. Is there a way to raise the resolution and get better preview ? Thanks for help
  

ResolutionPrintPreview.PNG (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is there a way to raise the resolution of print preview in JDiagram
Reply #1 - Dec 17th, 2014 at 10:15am
Print Post  
Hi,

With what OS and Java version are you seeing this? We have some ancient code that indeed caches pages as bitmap images, but have never seen the images scale that bad... Anyway we'll try to replace the bitmap rendering with actual drawing of a scaled diagram in the next few days.

Stoyan
  
Back to top
 
IP Logged
 
Patrick Guerin
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Dec 11th, 2014
Re: Is there a way to raise the resolution of print preview in JDiagram
Reply #2 - Dec 17th, 2014 at 6:53pm
Print Post  
Hi
Java runtime 1.7 & Windows 7.  Do you think the next few day will be this year ?   Tongue
Thanks for you support.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is there a way to raise the resolution of print preview in JDiagram
Reply #3 - Dec 18th, 2014 at 10:33am
Print Post  
Well, here's untested pre-release version that now draws the print preview as vector graphics:
https://mindfusion.eu/_beta/JDiagram.4.1.2.zip

We are not likely to release it this year, but will try to in early January.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Patrick Guerin
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Dec 11th, 2014
Re: Is there a way to raise the resolution of print preview in JDiagram
Reply #4 - Dec 18th, 2014 at 2:09pm
Print Post  
Thanks for the fix, I will try that right now and give you feedback...

Everything is working perfectly !  Thanks, this is a very nice upgrade that get better user experience...  We will integrate this in our next release...  Do you have an idea of when you will release the official version ?  Thanks again.
  
Back to top
 
IP Logged
 
Patrick Guerin
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Dec 11th, 2014
Re: Is there a way to raise the resolution of print preview in JDiagram
Reply #5 - Jan 5th, 2015 at 6:21pm
Print Post  
Strange behavior, I don't know if this happen only with the new vector printpreview, but, when I click the "FitToPage" button in the print preview, I'm not able to see entire graph in the print preview and the print generate 2 pages (not 1).  You can look the pdf (this is a scan of the printed sheet).  In the same way, is is possible to remove the title and set the margin inside of the preview and printing ?  Thanks for your help.
  

scan.pdf (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is there a way to raise the resolution of print preview in JDiagram
Reply #6 - Jan 5th, 2015 at 8:24pm
Print Post  
This new build should fix it:
https://mindfusion.eu/_beta/JDiagram.4.1.2.zip

You can remove the header like this:
diagramView.getPrintOptions().setHeaderFormat("");

You should be able to add margins via the PageFormat.Paper property and calling printPreview(PageFormat) or print(PageFormat).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint