[JPP-Devel] I need an help
Hi all, finally I came to study how to develop tools. I started from a Kosmo small tool which I adopted to OJ. It basically calculate the angle between a segment and the North, in a plane (UTM), in both degrees and radians. that is the code: public MeasureAzimutUTMTool() { super(2); allowSnapping();} protected void gestureFinished() throws Exception { Iterator it = getCoordinates().iterator(); Coordinate c1=null,c2=null; /** * Calculates Degrees and Radians */ double d = 0; if (it.hasNext()) c1 = (Coordinate)it.next(); if (it.hasNext()) c2 = (Coordinate)it.next(); LineSegment ls = new LineSegment(c1,c2); d = ls.angle(); double DEG = 90 - d * (180/Math.PI); double DEG1 = DEG; if (DEG 0) DEG1 = DEG1 + 360; double RAD = DEG1/180; getPanel().getContext().setStatusMessage( I18N.get(org.saig.jump.tools.messuring.MessureAzimutUTMTool.Angle-referencing-north) + :+ getPanel().format(DEG1)+° = + getPanel().format(RAD) + \u03C0); *** My idea is to start from this tool to obtain other surveying tools. My questions are: 1) actually the tool only displays on status panel the value of the angle. I need that it creates a new layer and , for every measuring, a point with the values of degrees saved in an attribute 2) I need that the tools creates, for every measuring, a line with vectors (segments) oriented according the calculated angles. I really thatnk if someone can help me. regards Giuseppe -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] WMS basic auth problem with OpenJUMP 1.4.1
Hi, I tested WMS basic authentication for Ede some time ago and it did work then with the nightly build that Ede showed me. However, it looks like something went wrong with the OJ 1.4.1 release. When trying to connect with WMS url like https://username:password@server...; the result is this error: java.lang.NoClassDefFoundError: net/iharder/Base64 at com.vividsolutions.wms.WMService.initialize(WMService.java:118) at com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:204) at com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) at org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.openjump.core.ui.plugin.file.OpenWizardPlugIn.execute(OpenWizardPlugIn.java:83) at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:130) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at
Re: [JPP-Devel] I need an help
My idea is to start from this tool to obtain other surveying tools. My questions are: 1) actually the tool only displays on status panel the value of the angle. I need that it creates a new layer and , for every measuring, a point with the values of degrees saved in an attribute 2) I need that the tools creates, for every measuring, a line with vectors (segments) oriented according the calculated angles. I really thatnk if someone can help me. i usually look around if somewhere in oj or in an extension is a similar functionality as i need and look how thy did it, reading the source. then i cherry-pick the routines i need and glue them together as needed. good luck ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS basic auth problem with OpenJUMP 1.4.1
On 13.07.2011 10:41, Rahkonen Jukka wrote: Hi, I tested WMS basic authentication for Ede some time ago and it did work then with the nightly build that Ede showed me. However, it looks like something went wrong with the OJ 1.4.1 release. When trying to connect with WMS url like https://username:password@server...; the result is this error: java.lang.NoClassDefFoundError: net/iharder/Base64 right, the new base64 encoder component is missing in openjump-workbench-1.4.1.jar or openjump-api-1.4.1.jar. You can workaround by replacing the above files with the nightly build openjump-core-1.4.1-SNAPSHOT.jar which contains it plus the contents of the other two jars. Michael how comes it did not end up in the release :)? ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] PrinterPlugIn (for Michael
On 11.07.2011 09:54, Geoffrey Roy wrote: I now understand your problem with the name of the JAR - yes it cannot be changed without changing the code. Again this can be fixed, but I do not have the time at the moment. is the code available via svn or such? i could have a look at that. ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] drag and drop missing?
Hei, seems like it was a false alarm. Today it works... surprise... sorry for that! stefan On 12/07/2011 11:32 PM, Rahkonen Jukka wrote: Hi, I checked with 1.4.1 (Windows Vista 32 bit, Java 1.6) and I can still drag and drop shapefiles. What happens when you try the same? -Jukka Rahkonen- Stefan Steiniger wrote: Hey all, I am almost back, and last should be listening to the list as of now again. And, unfortunately, I have a question that appeared when I was looking at the 1.4.1 Version for Windows: What happened with the file drag drop function? (I checked... it was working with 1.4.0.1, but can't say where/how it was implemented... ) cheers from Callgary stefan -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS basic auth problem with OpenJUMP 1.4.1
Hi, I'm sorry that net package misses in 1.4.1. Unfortunately, it has not been added to the ant build file after Ede replaced old sun classes by these free ones, and I did not notice it because it seems it does not prevent to connect to wms url as long as it is not secured url. Not sure how NB is compiled. Using maven I think. I'll fix this to night and let you know. Michaël Le 13/07/2011 10:51, edgar.sol...@web.de a écrit : On 13.07.2011 10:41, Rahkonen Jukka wrote: Hi, I tested WMS basic authentication for Ede some time ago and it did work then with the nightly build that Ede showed me. However, it looks like something went wrong with the OJ 1.4.1 release. When trying to connect with WMS url like https://username:password@server...; the result is this error: java.lang.NoClassDefFoundError: net/iharder/Base64 right, the new base64 encoder component is missing in openjump-workbench-1.4.1.jar or openjump-api-1.4.1.jar. You can workaround by replacing the above files with the nightly build openjump-core-1.4.1-SNAPSHOT.jar which contains it plus the contents of the other two jars. Michael how comes it did not end up in the release :)? ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS basic auth problem with OpenJUMP 1.4.1
ahh ok, good to know. i do not use ant. while you are at it. how about switching back to _one_ jar. i can't see a valid reason to separate workbench, all i see are lots of dependencies between the two jars. also. isn't there a wildcard adding possible with ant, preventing this for the future? ..ede On 13.07.2011 21:16, Michaël Michaud wrote: Hi, I'm sorry that net package misses in 1.4.1. Unfortunately, it has not been added to the ant build file after Ede replaced old sun classes by these free ones, and I did not notice it because it seems it does not prevent to connect to wms url as long as it is not secured url. Not sure how NB is compiled. Using maven I think. I'll fix this to night and let you know. Michaël Le 13/07/2011 10:51, edgar.sol...@web.de a écrit : On 13.07.2011 10:41, Rahkonen Jukka wrote: Hi, I tested WMS basic authentication for Ede some time ago and it did work then with the nightly build that Ede showed me. However, it looks like something went wrong with the OJ 1.4.1 release. When trying to connect with WMS url like https://username:password@server...; the result is this error: java.lang.NoClassDefFoundError: net/iharder/Base64 right, the new base64 encoder component is missing in openjump-workbench-1.4.1.jar or openjump-api-1.4.1.jar. You can workaround by replacing the above files with the nightly build openjump-core-1.4.1-SNAPSHOT.jar which contains it plus the contents of the other two jars. Michael how comes it did not end up in the release :)? ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] I need an help
Hei Peppe thats great news that you started programming! for the first one - how about this example on the buffer: http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Example_Plugin_For_Buffering_Features_in_a_Layer but instead of creating a buffer geometry you get the coordinate of the point and create a new point feature in a new layer... or so? But what makes it a bit more difficult is that you stay in an interaction mode... i.e. you activate the function once and then stop it later when you are done and keep writing to the same layer... so you need like two buttons and create the layer only once? (my draw circles tool from the editing box is a bit a mess, but could help too)...mhm the more I think about it, the more complicated it seems to me. for the second on.. seems more tricky to me. Would need to think about it. However, the tools that came with SkyJump to modify and access edges of a polygon do something similar - right? cheers, stefan On 13/07/2011 2:26 AM, Edgar Soldin wrote: My idea is to start from this tool to obtain other surveying tools. My questions are: 1) actually the tool only displays on status panel the value of the angle. I need that it creates a new layer and , for every measuring, a point with the values of degrees saved in an attribute 2) I need that the tools creates, for every measuring, a line with vectors (segments) oriented according the calculated angles. I really thatnk if someone can help me. i usually look around if somewhere in oj or in an extension is a similar functionality as i need and look how thy did it, reading the source. then i cherry-pick the routines i need and glue them together as needed. good luck ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS basic auth problem with OpenJUMP 1.4.1
Le 13/07/2011 21:26, edgar.sol...@web.de a écrit : ahh ok, good to know. i do not use ant. while you are at it. how about switching back to _one_ jar. i can't see a valid reason to separate workbench, all i see are lots of dependencies between the two jars. You're right. It could make sense to have a minimal working jar, but it would be more complex than just separating packages as it is today. I'll do a single jar. also. isn't there a wildcard adding possible with ant, preventing this for the future? Yes, it is even possible to include all but one package (there is a jumptest subfolder in src which may not have its place in distribution) Michaël ..ede On 13.07.2011 21:16, Michaël Michaud wrote: Hi, I'm sorry that net package misses in 1.4.1. Unfortunately, it has not been added to the ant build file after Ede replaced old sun classes by these free ones, and I did not notice it because it seems it does not prevent to connect to wms url as long as it is not secured url. Not sure how NB is compiled. Using maven I think. I'll fix this to night and let you know. Michaël Le 13/07/2011 10:51, edgar.sol...@web.de a écrit : On 13.07.2011 10:41, Rahkonen Jukka wrote: Hi, I tested WMS basic authentication for Ede some time ago and it did work then with the nightly build that Ede showed me. However, it looks like something went wrong with the OJ 1.4.1 release. When trying to connect with WMS url like https://username:password@server...; the result is this error: java.lang.NoClassDefFoundError: net/iharder/Base64 right, the new base64 encoder component is missing in openjump-workbench-1.4.1.jar or openjump-api-1.4.1.jar. You can workaround by replacing the above files with the nightly build openjump-core-1.4.1-SNAPSHOT.jar which contains it plus the contents of the other two jars. Michael how comes it did not end up in the release :)? ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] I need an help
Hi Stefan. Welcome back! @Peppe, I think Stefan is referring to Edit Selected Side, and it seems like a perfect example of what you are trying to do. It creates a new temporary layer and calculates distance and angles. regards, Larry On Wed, Jul 13, 2011 at 2:28 PM, Stefan Steiniger sst...@geo.uzh.ch wrote: Hei Peppe thats great news that you started programming! for the first one - how about this example on the buffer: http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Example_Plugin_For_Buffering_Features_in_a_Layer but instead of creating a buffer geometry you get the coordinate of the point and create a new point feature in a new layer... or so? But what makes it a bit more difficult is that you stay in an interaction mode... i.e. you activate the function once and then stop it later when you are done and keep writing to the same layer... so you need like two buttons and create the layer only once? (my draw circles tool from the editing box is a bit a mess, but could help too)...mhm the more I think about it, the more complicated it seems to me. for the second on.. seems more tricky to me. Would need to think about it. However, the tools that came with SkyJump to modify and access edges of a polygon do something similar - right? cheers, stefan On 13/07/2011 2:26 AM, Edgar Soldin wrote: My idea is to start from this tool to obtain other surveying tools. My questions are: 1) actually the tool only displays on status panel the value of the angle. I need that it creates a new layer and , for every measuring, a point with the values of degrees saved in an attribute 2) I need that the tools creates, for every measuring, a line with vectors (segments) oriented according the calculated angles. I really thatnk if someone can help me. i usually look around if somewhere in oj or in an extension is a similar functionality as i need and look how thy did it, reading the source. then i cherry-pick the routines i need and glue them together as needed. good luck ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] PrinterPlugIn (for Michael
Hi, Geoffrey Thanks a lot for all your efforts, I'll test your improvements soon and let you know. Michaël Dear Michael Thanks for the feedback. I am attaching revised version: 1. The problem with the number format could be solved nicely with some effort, but I have simply removed the grouping separator (a comma in English). There is obviously a problem with European decimal formats. I think this is the problem, please test again. 2. The titles for the various renderers have changed over time - also their meaning. In earlier attempts I was testing 4 different renders that were called Quality Accurate etc, but these have been replaced by three ISA, Core and External - with the user to decide which gives the best results. 3. I now understand your problem with the name of the JAR - yes it cannot be changed without changing the code. Again this can be fixed, but I do not have the time at the moment. 4. The typo in the language files fixed 5. A new French language file installed. Hope this is now OK for you. regards Geoff On 11/07/2011 6:29 AM, Michaël Michaud wrote: Hi Geoff, Thanks a lot for improvements ! 1. The scale field now checks for numeric values with spaces, and attempts to resolve a reasonable number, so 1 234 and 1,234 converts to 1234. Please let me know if this causes any other problems with your decimal point/separator values. This one is not fixed for me. To reproduce the problem, set locale to french/France, open the main printer dialog (I get a scale of 2 897 for example), and click in the fit to page checkbox. I get an Error in the scale field error. If I change to english/Australia locale, I get the scale as 2,897 (instead of 2 897) and there is no more error. If I manually change 2 897 to 2897, It also works fine. Maybe this example can help : http://www.exampledepot.com/egs/java.text/Numbers.html 1. The Window Close button now operates the same as the Cancel button. Fixed, thanks. 1. PrinterPlugin tooltip is now internationalized Fixed, thanks. 1. The title of the About dialog is now internationalized. Fixed, thanks 1. The Quality word in the Help dialog should simply be removed from the language file (JumpPrinter.HelpDialog.Message7). In English I have changed this to Options . I have not changed the other language files. OK, what I meant was that Precision and Quality words used in JumpPrinter.Setup.Quality and JumpPrinter.Setup.Message7 were probably refering to old PrinterSetUp String [] qualityItems = {OJ Quality Renderer, OJ Accurate Renderer, External Renderer,SkyJump Renderer}; but make less sens for the user now that renderer are called String [] qualityItems = {ISA Renderer, Core Renderer, External Renderer}; Not sure if terms Precision/Quality must be removed from language file or add to renderer names... 1. [..] around Furniture in Help dialog now corrected. Fixed, thanks 1. Save Image dialog, Size is now internationalised Fixed, thanks 1. Your French language file is now included in the jar Great, thanks 1. Note Panel -- and ++ buttons are now internationalised, In English I have named these Del and Add. I have attempted the translation into Italian, German and French (excuse my poor language skills). Note that the layout of the dialog is sensitive to word length - but you can always put -- and ++ in the language file. Fine, thanks 1. The package com.cadplan.fileio was in both jars (this is not good - I know). Generally it did not cause problems - but!!! For JumpPrinter I have renamed this package to com.cadplan.fileioA - this should solve the problem for the moment. Sorry for my bad diagnosis. The problem is still there (if I change the jar name to JumpPrinter-1.77.jar, I get an exception). Now, I think this is because application name in PrinterPlugIn... //PrinterPlugIn IconLoader loader = new IconLoader(dirName,JumpPrinter); // is used as jarname in IconLoader filename = jar:file:+wd+/+appName+.jar!/+Resources/+name; OK, this problem is not a big issue as I have not to rename the jar file Just let you know why I could not do it and let you decide if it is worthwhile fixing it. Also there is a typo in language file with the key JumPrinter.OkToPrint which should be JumpPrinter.OkToPrint (with 2 'p') as in the source code Attached, the french file with a few typo fixed. Best regards, Michaël Please let me know how you get on. thanks Geoff On 3/07/2011 6:34 PM, Michaël Michaud wrote: Hi Geoff, I just have translated PrinterPlugIn to french. Please find the properties file attached to this mail. I'm on the way of including it in OpenJUMP 1.4.1-s distribution. It gave me the occasion to appreciate the excellent work you did for this plugin. I realized that I did not know 10% of its