Hi everybody,
this is a dialog between Uwe about the possibility to deactivate a plugin
(Raster>Color Editor) as it was substituded by the new Raster Image tree
menu>Raster Layer Properties>Raster Color Editor Panel
*.*
My mistake that this dialog remained between Uwe and I
*.*
I would like the opinion of the other developers
thanks
Peppe




---------- Forwarded message ----------
From: Giuseppe Aruta <giuseppe.ar...@gmail.com>
Date: 2015-06-04 17:53 GMT+02:00
Subject: Re: [JPP-Devel] Fwd: NullPointerException Change Raster Image
Properties
To: uwe.dallu...@hcu-hamburg.de


Hi Uwe,
I checked the code of  "Raster>Raster Color Editor*" *(original plugin)*. *It
seems that the new raster improvements broke its capability to restore
original color scheme. And I don't want to make any change as those
improvements have been applied to other classes/plugins, which have no
described bugs.
There are some solutions, I will describe them after a brief description of
how and when to apply those plugins (sorry for the boringness and
redundancy)

*Actual situation:*
*Single Band Raster*. to apply color schemas on these files, an user should
use "Raster Image tree menu>Raster Layer Properties>Raster Color Editor
Panel*" *(derived plugin)).  It is possible to restore the "Default Colors"
of a DEM (since these files have no default color schema, OJ adopted a
standard  B/Grays/W ramp). This derived plugin has also more options and
color schemas that the original one.

*Raster with multiple bands*. the original plugin affects (and affected)
only the Band num. 0, which is usually the red channel on image files. The
other channels (blue and green) are hidden. This behaviour has a few
application, I feel, on raster analysis.
On the other hand the option to restore "default color" doesn't work,
because of the raster framework improvements. Alberto, if he reads these
notes, can probably explain better than I do.
The derived plugin is not activated if a multi-band raster is selected.

*Possible solutions*:
If you need to use the original plugin. Or  you need to use false color
schemas on multi-band rasters, there are a couple of option that we can
discuss about:

a)  I can add modify the code in order that, when user choose "Default
color", the raster layer is reloaded with its original color schemas (RGB).
In this case the original plugin is saved.

b) I can add a plugin that divide RGB channels of an Image into separate
single band rasters, than user can apply color schemas using the derived
plugin. In this case I would deactivate the original plugin.

I am waiting for your opinion about. Your experience with the students is
important. In my opinion I would deactivate the original plugin in order
not to confuse users.

Best regards

Peppe


2015-06-01 14:24 GMT+02:00 Uwe Dalluege <uwe.dallu...@hcu-hamburg.de>:

> ... I hope you will have nice "free" days!
>
> uwe
>
> Am 01.06.2015 um 13:51 schrieb Giuseppe Aruta:
>
>> Hi Uwe,
>> Thanks for hte test.I was aware of that bug. It was corrected on Raster
>> Layer Properties>Raster Color Editor layer menu but not on the
>> Raster>Raster Color Editor one.
>> I am out for a couples of days. I will give a look when I will be back
>> home
>> Best regards
>> Peppe
>>
>> 2015-06-01 11:16 GMT+02:00 Uwe Dalluege <uwe.dallu...@hcu-hamburg.de
>> <mailto:uwe.dallu...@hcu-hamburg.de>>:
>>
>>
>>     Hi Peppe,
>>
>>     sorry for answering so late but I was on holiday :-)
>>
>>     I have some problems with Raster>Raster Color Editor...
>>     in OJ r.4471.
>>
>>     1. Open with Sextante Raster Image my orthoGC.tif
>>     2. Select the RasterLayer and then Raster>Raster Color Editor...
>>     3. The Raster Color Editor Panel appears.
>>     4. Click to the Ok button and the image disappears!
>>     5. Zooming in or out and the image appears.
>>     6. Now choosing another color combination, maybe Black-White.
>>     7. The Black-White image appears immediately.
>>     8. Choosing Default colors the image disappears!
>>     9. Zooming in or out and the image appears with Black-White
>>     but not with the Default colors.
>>
>>     Kind regards
>>
>>     Uwe
>>
>>
>>     Am 23.05.2015 um 21:41 schrieb Giuseppe Aruta:
>>
>>         Hi Uwe,
>>         I just gave a look on the code again to correct an annoying bug on
>>         Raster Color Editor: the elements of this panel were randomly
>>         appearing
>>         on  Raster transparency panel when a Single band raster was
>>         selected.
>>         Now the Dialog (only for Single band raster) is smaller as there
>>         is no
>>         need of the "Select Color transparency" for those files (it was
>> not
>>         working anyhow).
>>         Nothing is changed if an image is selected.
>>         I also added a new option on Raster Color Editor panel to switch
>>         between
>>         ramp and interval color model, something embryonic, thanks to
>>         the new
>>         raster framework/classes that Alberto (one member of this list)
>>         added to
>>         OpenJUMP. I hope one day he can give a look and make something
>> more
>>         professional than my work.
>>         Best regards
>>         Peppe
>>
>>
>>         2015-05-21 10:19 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 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>
>>                  <mailto:giuseppe.ar...@gmail.com
>>         <mailto:giuseppe.ar...@gmail.com>>
>>                  <mailto:giuseppe.ar...@gmail.com
>>         <mailto:giuseppe.ar...@gmail.com>
>>         <mailto: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>
>>                  <mailto:jukka.rahko...@maanmittauslaitos.fi
>>         <mailto:jukka.rahko...@maanmittauslaitos.fi>>
>>                  <mailto:jukka.rahko...@maanmittauslaitos.fi
>>         <mailto:jukka.rahko...@maanmittauslaitos.fi>
>>                  <mailto: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>
>>         <mailto:giuseppe.ar...@gmail.com <mailto:giuseppe.ar...@gmail.com
>> >>
>>                  <mailto:giuseppe.ar...@gmail.com
>>         <mailto:giuseppe.ar...@gmail.com>
>>                  <mailto: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>
>>         <mailto:giuseppe.ar...@gmail.com <mailto:giuseppe.ar...@gmail.com
>> >>
>>                       <mailto:giuseppe.ar...@gmail.com
>>         <mailto:giuseppe.ar...@gmail.com>
>>                  <mailto: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>
>>                  <mailto:jukka.rahko...@maanmittauslaitos.fi
>>         <mailto:jukka.rahko...@maanmittauslaitos.fi>>
>>                           <mailto:jukka.rahko...@maanmittauslaitos.fi
>>         <mailto:jukka.rahko...@maanmittauslaitos.fi>
>>                  <mailto: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>>
>>                               <mailto:uwe.dallu...@hcu-hamburg.de
>>         <mailto:uwe.dallu...@hcu-hamburg.de>
>>                  <mailto:uwe.dallu...@hcu-hamburg.de
>>         <mailto:uwe.dallu...@hcu-hamburg.de>>>
>>                                > <mailto:uwe.dallu...@hcu-hamburg.de
>>         <mailto:uwe.dallu...@hcu-hamburg.de>
>>                  <mailto:uwe.dallu...@hcu-hamburg.de
>>         <mailto:uwe.dallu...@hcu-hamburg.de>>
>>
>>                               <mailto: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>>
>>
>>           <mailto: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>>>
>>                                >
>>                    <mailto: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>>
>>
>>           <mailto: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>
>>                  <mailto: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>
>>                  <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>
>>                  <mailto:Jump-pilot-devel@lists.sourceforge.net
>>         <mailto:Jump-pilot-devel@lists.sourceforge.net>>
>>         https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
>>
>>
------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to