... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing ?
#1
Hello,

I'm not able to print with RouteConverter.
When I try to print, I have an error, and find that in the log :


Quote:mars 15, 2019 3:04:57 PM slash.navigation.gui.helpers.WindowHelper handleThrowable
GRAVE: Unhandled throwable in action PrintMapAction: java.lang.UnsupportedOperationException: Printing not supported, java.lang.UnsupportedOperationException: Printing not supported
at slash.navigation.mapview.mapsforge.MapsforgeMapView.print(MapsforgeMapView.java:969)
at slash.navigation.converter.gui.RouteConverter$PrintMapAction.run(RouteConverter.java:1398)
at slash.navigation.gui.actions.FrameAction.actionPerformed(FrameAction.java:51)
at slash.navigation.gui.actions.ActionManager.perform(ActionManager.java:130)
at slash.navigation.gui.actions.ActionManager$ProxyAction.actionPerformed(ActionManager.java:201)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:125)
at java.awt.MenuItem.processActionEvent(MenuItem.java:669)
at java.awt.MenuItem.processEvent(MenuItem.java:628)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:357)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:345)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:763)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

So ? Is there a solution ?

Best regards,
Reply
#2
(15.03.2019, 15:08)tybern Wrote: So ? Is there a solution ?

The error message says "Not supported".

As a historic note, the Google Edition supported printing since it was easy to ask the embedded web browser to print itself. But the OpenSource Edition uses the mapsforge library and I haven't looked into it to find out how to print a org.mapsforge.map.view.FrameBuffer

Volunteers willing to help are always welcome.
--
Christian
Reply
#3
Hello,

I was wondering - perhaps, you have some pdf tutorials which could help understand how to extend the printing capabilities of the WebViewSample application. Which application is more optimal: JavaFX or Java Swing?

Thank you
Grant Wilson
The University of Texas at Austin  Department of Chemical Engineering
buy essay author of engineering reports
Reply
#4
Dear Grant,

what is displayed on the screen is a Java Swing component
https://github.com/cpesch/RouteConverter...pView.java
and deep inside that uses Graphics2D.

Do you have an idea how to turn this into a PDF?
--
Christian
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)