Hi Peppe, your solution in OJ 4456 works fine! Thank you for your quick help.
Regards Uwe Am 20.05.2015 um 20:35 schrieb Giuseppe Aruta: > > ---------- Forwarded message ---------- > From: *Giuseppe Aruta* <giuseppe.ar...@gmail.com > <mailto:giuseppe.ar...@gmail.com>> > Date: 2015-05-20 20:33 GMT+02:00 > Subject: Re: [JPP-Devel] NullPointerException Change Raster Image Properties > To: "Rahkonen Jukka (MML)" <jukka.rahko...@maanmittauslaitos.fi > <mailto:jukka.rahko...@maanmittauslaitos.fi>> > > > Applied the modifications, > see OpenJUMP version 4456. > Peppe > > 2015-05-20 19:12 GMT+02:00 Giuseppe Aruta <giuseppe.ar...@gmail.com > <mailto:giuseppe.ar...@gmail.com>>: > > I found the problem. > > Actually Change Raster Style Plugin activates in the same time 3 > different actions: transparency, scale visibility and Raster Color > Editor (color schema for single band raster, deriving from > Raster>Raster color editor plugin). > > The Raster Color Editor panel has a /Default Colors/ option on the > list (as default) which probably was used to restore original color > schema of the raster. > Actually it returns an empty array of colors and the image (single > or multiple bands raster) disappears. > > The workaround that I can do is the following: > > 1) If a *multiple bands raster* is selected, only two panels will be > visible: Transparency and Scale visibility, If user want to apply a > false color schema to a multiple band, there is still the old > Raster>Raster color editor plugin. > > > 2) If a *single band raster* is selected, the 3 panels will be > visible: Transparency, Scale visibility and LUT. The previous > /Default Colors option/ on Raster Color Editor panel will point to a > Black-White color schema, as default in OpenJUMP > > > I prefer to avoid to use Raster Color Editor option for multiple > raster layers, in this moment, as this option is still embrionic in > OJ and there is still a lot of job to do (colors per classes, for > instance). > I would like to have your opinion > Peppe > > > > 2015-05-20 18:07 GMT+02:00 Giuseppe Aruta <giuseppe.ar...@gmail.com > <mailto:giuseppe.ar...@gmail.com>>: > > Hi Uwe, Jukka, > Jukka is right. Zooming in/out to let the image appear again. > But also clicking the colour transparent check-box. > I will do some test on next days and try to solve it: the actual > behaviour is not so practical. > Peppe > > 2015-05-20 9:04 GMT+02:00 Rahkonen Jukka (MML) > <jukka.rahko...@maanmittauslaitos.fi > <mailto:jukka.rahko...@maanmittauslaitos.fi>>: > > Hi, > > The image disappears also for me with r4455 initially but > if I just zoom in one time it comes back and stays visible > after that. > > -Jukka Rahkonen- > > > Uwe Dalluege wrote: > > Hi Peppe, > > thank you for your quick answer. > Unfortunately the rasterimage disappears after pressing the > Apply button. > First for a few seconds but pressing the Apply or Ok button > again the image disappears for ever :-( > > Please see the attachment. > > Regards > > Uwe > > > > Am 19.05.2015 um 20:42 schrieb Giuseppe Aruta: > > Hi Uwe, > > I gave a look, it should be fixed on next OJ NB thanks > for the test > > Peppe > > > > 2015-05-19 9:18 GMT+02:00 Uwe Dalluege > <uwe.dallu...@hcu-hamburg.de > <mailto:uwe.dallu...@hcu-hamburg.de> > > <mailto:uwe.dallu...@hcu-hamburg.de > <mailto:uwe.dallu...@hcu-hamburg.de>>>: > > > > Hi, > > > > 1. Open a Sextante Raster Image. > > 2. Change Raster Image Properties. > > 3. Enable the checkBox "Do you want a color to be > transparent". > > 4. Move the slider "set overall transparency" > > 5. Press Apply-Button > > and the raster image changed without an error. > > 6. Press OK Button and the error message appears... > > > > I tested it with OJ Version 20150507 snapshot rev.4426 > > > > > > > > java.lang.NullPointerException > > at > > > > org.openjump.core.ui.plugin.layer.pirolraster.panel.RasterColorEditorPanel.updateStyles(RasterColorEditorPanel.java:289) > > at > > > > org.openjump.core.ui.plugin.layer.pirolraster.ChangeRasterImagePropertiesPlugIn.execute(ChangeRasterImagePropertiesPlugIn.java:128) > > at > > > > com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:342) > > 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.AbstractButton.doClick(Unknown Source) > > at > javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown > > Source) > > at > > > > javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.dispatchEventImpl(Unknown Source) > > at java.awt.EventQueue.access$500(Unknown > Source) > > at java.awt.EventQueue$3.run(Unknown Source) > > at java.awt.EventQueue$3.run(Unknown Source) > > at > java.security.AccessController.doPrivileged(Native Method) > > at > > > > java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) > > at > > > > java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) > > at java.awt.EventQueue$4.run(Unknown Source) > > at java.awt.EventQueue$4.run(Unknown Source) > > at > java.security.AccessController.doPrivileged(Native Method) > > at > > > > java.security.ProtectionDomain$1.doIntersectionPrivilege(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 > java.awt.EventDispatchThread.pumpEvents(Unknown Source) > > at java.awt.EventDispatchThread.run(Unknown > Source) > > > > > > > > Regards > > > > Uwe > > > > > > > > ------------------------------------------------------------------------------ > > One dashboard for servers and applications across > Physical-Virtual-Cloud > > Widest out-of-the-box monitoring support with 50+ > applications > > Performance metrics, stats and reports that give you > Actionable Insights > > Deep dive visibility with transaction tracing using > APM Insight. > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > _______________________________________________ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > > <mailto:Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net>> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > > > > > > > > ---------------------------------------------------------------------- > > -------- One dashboard for servers and applications across > > Physical-Virtual-Cloud Widest out-of-the-box monitoring > support with > > 50+ applications Performance metrics, stats and reports > that give you > > Actionable Insights Deep dive visibility with transaction > tracing > > using APM Insight. > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > > > > > > _______________________________________________ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > > > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel