[JPP-Devel] Change the color of the selected feature

2013-03-06 Thread Asma ouqalli
Hello,
I need to change the color of the selected data.
Can anyone help me to find in which class or which method that changes
colors and give the selected data a specefic or random color different from
the old one.
thanks in advance.

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-06 Thread Michaël Michaud

Hi,

I need to change the color of the selected data.
Can anyone help me to find in which class or which method that changes 
colors and give the selected data a specefic or random color different 
from the old one.

thanks in advance.
Do you want to "show" selected features, and give them back the original 
color if

the selection change or do you want to apply the new color _permanently _?

In the first case, you just have to "select" features so that they 
appear with the
thick yellow* border line. Use the SelectionManager and FeatureSelection 
classes

*Can be change from the options

In the second case, you'll have to use an attribute to store the
color information (which means you have to modify or prepare the
schema for that)
You can either put semantic information in the attribute then apply
a ColorThemingStyle (which may be a bit tricky)
or, more simple, add a "R_G_B" attribute and store colors as
RRVVBB hexadecimal values.

Michaël




--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-06 Thread Rahkonen Jukka
Hi,

R_G_B system works only with Color chooser plugin which comes with OpenJUMP 
Plus. Perhaps that plugin could be modified to give random fills for the 
selected polygons.

Here comes another idea. Sometimes it would be nice to have polygon maps where 
adjacent polygons have different colors according to the four color theorem. Or 
seven colors it that would be easier to compute. That feature would also suit 
well as an option for Color chooser plugin.
http://en.wikipedia.org/wiki/Four_color_theorem
http://people.math.gatech.edu/~thomas/FC/fourcolor.html
http://146.163.152.131/teaching/projects/poettker_final.pdf

-Jukka Rahkonen-



Michaël Michaud wrote:

Hi,
I need to change the color of the selected data.
Can anyone help me to find in which class or which method that changes colors 
and give the selected data a specefic or random color different from the old 
one.
thanks in advance.
> Do you want to "show" selected features, and give them back the original 
> color if
> the selection change or do you want to apply the new color permanently ?

> In the first case, you just have to "select" features so that they appear 
> with the
> thick yellow* border line. Use the SelectionManager and FeatureSelection 
> classes
> *Can be change from the options

> In the second case, you'll have to use an attribute to store the
> color information (which means you have to modify or prepare the
> schema for that)
> You can either put semantic information in the attribute then apply
> a ColorThemingStyle (which may be a bit tricky)
> or, more simple, add a "R_G_B" attribute and store colors as
> RRVVBB hexadecimal values.

> Michaël



--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com




--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-06 Thread Michaël Michaud
Hi,

I thought R_G_B system worked only with the plugin, but the plugin is 
only needed to pick-up colors from the UI.
The code to render colors from R_G_B attribute has been added by Pepe in 
the BasicStyle code (which, IMHO, is fine).

The idea of a style able to render a polygon layer with four colors is a 
nice idea.
The four color theorem has been so hard to prove that I doubt that the 
implementation of such a plugin is an easy task,
but it would be an interesting theme for a student or any person with a 
good mathematical (graph) knowledge.

Michaël
> Hi,
>
> R_G_B system works only with Color chooser plugin which comes with OpenJUMP 
> Plus. Perhaps that plugin could be modified to give random fills for the 
> selected polygons.
>
> Here comes another idea. Sometimes it would be nice to have polygon maps 
> where adjacent polygons have different colors according to the four color 
> theorem. Or seven colors it that would be easier to compute. That feature 
> would also suit well as an option for Color chooser plugin.
> http://en.wikipedia.org/wiki/Four_color_theorem
> http://people.math.gatech.edu/~thomas/FC/fourcolor.html
> http://146.163.152.131/teaching/projects/poettker_final.pdf
>
> -Jukka Rahkonen-
>
>
> 
> Michaël Michaud wrote:
>
> Hi,
> I need to change the color of the selected data.
> Can anyone help me to find in which class or which method that changes colors 
> and give the selected data a specefic or random color different from the old 
> one.
> thanks in advance.
>> Do you want to "show" selected features, and give them back the original 
>> color if
>> the selection change or do you want to apply the new color permanently ?
>> In the first case, you just have to "select" features so that they appear 
>> with the
>> thick yellow* border line. Use the SelectionManager and FeatureSelection 
>> classes
>> *Can be change from the options
>> In the second case, you'll have to use an attribute to store the
>> color information (which means you have to modify or prepare the
>> schema for that)
>> You can either put semantic information in the attribute then apply
>> a ColorThemingStyle (which may be a bit tricky)
>> or, more simple, add a "R_G_B" attribute and store colors as
>> RRVVBB hexadecimal values.
>> Michaël
>
>
> --
> *Asma OUQALLI*
>
> Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
> Chef de commission développement professionnel  - Rotaract EHTP.
> Chef de cellule Media - Olympiades EHTP 2012.
>Ecole Hassania des Travaux Publics.
> Mobile : +212 672 48 23 15.
> Email : asma.ouqa...@gmail.com
>
>
>
>
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
>
>
>
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-07 Thread Rahkonen Jukka
Hi,

I did not know about the general R_G_B field support.  I can see that if hand 
coloured layer is saved into OpenJUMP project it is considered to be classified 
by unique values of R_G_B field.  This has some consequences. After opening 
such a project OJ shows layer styles as if theme colouring is active. However, 
it is not possible to adjust colours from the theme colouring tab. Only editing 
R_G_B field value has on effect on colours. Perhaps use of R_G_B field for 
theme colouring should be deactivated from the user interface.

Perhaps theme colouring could be used in opposite way so that there would be on 
option to write the colour values from the classification into the R_G_B 
attribute. That way it would be fast to make an initial colouring for the whole 
map and fix it by hand to look perfect.

By the way, OJ has just a small fixed predefined colour palette set for theme 
colouring. Kosmo developers have added a feature rich palette editor which is 
worth having a look.

-Jukka-

 Michaël Michaud wrote:
> 
> Hi,
> 
> I thought R_G_B system worked only with the plugin, but the plugin is only
> needed to pick-up colors from the UI.
> The code to render colors from R_G_B attribute has been added by Pepe in
> the BasicStyle code (which, IMHO, is fine).
> 
> The idea of a style able to render a polygon layer with four colors is a nice
> idea.
> The four color theorem has been so hard to prove that I doubt that the
> implementation of such a plugin is an easy task, but it would be an 
> interesting
> theme for a student or any person with a good mathematical (graph)
> knowledge.
> 
> Michaël
> > Hi,
> >
> > R_G_B system works only with Color chooser plugin which comes with
> OpenJUMP Plus. Perhaps that plugin could be modified to give random fills
> for the selected polygons.
> >
> > Here comes another idea. Sometimes it would be nice to have polygon
> maps where adjacent polygons have different colors according to the four
> color theorem. Or seven colors it that would be easier to compute. That
> feature would also suit well as an option for Color chooser plugin.
> > http://en.wikipedia.org/wiki/Four_color_theorem > g/wiki/Four_color_theorem.>
> > http://people.math.gatech.edu/~thomas/FC/fourcolor.html
> > http://146.163.152.131/teaching/projects/poettker_final.pdf
> >
> > -Jukka Rahkonen-
> >
> >
> > 
> > Michaël Michaud wrote:
> >
> > Hi,
> > I need to change the color of the selected data.
> > Can anyone help me to find in which class or which method that changes
> colors and give the selected data a specefic or random color different from
> the old one.
> > thanks in advance.
> >> Do you want to "show" selected features, and give them back the
> >> original color if the selection change or do you want to apply the new 
> >> color
> permanently ?
> >> In the first case, you just have to "select" features so that they
> >> appear with the thick yellow* border line. Use the SelectionManager
> >> and FeatureSelection classes *Can be change from the options In the
> >> second case, you'll have to use an attribute to store the color
> >> information (which means you have to modify or prepare the schema for
> >> that) You can either put semantic information in the attribute then
> >> apply a ColorThemingStyle (which may be a bit tricky) or, more
> >> simple, add a "R_G_B" attribute and store colors as RRVVBB
> >> hexadecimal values.
> >> Michaël
> >
> >
> > --
> > *Asma OUQALLI*
> >
> > Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
> > Chef de commission développement professionnel  - Rotaract EHTP.
> > Chef de cellule Media - Olympiades EHTP 2012.
> >Ecole Hassania des Travaux Publics.
> > Mobile : +212 672 48 23 15.
> > Email : asma.ouqa...@gmail.com
> >
> >
> >
> >
> > --
> >  Symantec Endpoint Protection 12 positioned as A LEADER in The
> > Forrester
> > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in
> > the endpoint security space. For insight on selecting the right
> > partner to tackle endpoint security challenges, access the full report.
> > http://p.sf.net/sfu/symantec-dev2dev
> >
> >
> >
> > ___
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net > ourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> >
> >
> > --
> >  Symantec Endpoint Protection 12 positioned as A LEADER in The
> > Forrester
> > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in
> > the endpoint security space. For insight on selecting the right
> > partner to tackle endpoint security challenges, access the full report.
> > http://p.sf.net/sfu/symantec-dev2dev
> > _

Re: [JPP-Devel] Change the color of the selected feature

2013-03-07 Thread Asma ouqalli
Hello Michaud, Jukka Rahkonen,
no i don't want to apply the color permanently.
i guess i didn't explain correctly, so my plugin search for features from
the layer that matchs the user's needs and zook on the feature, i want to
change color  (not only the border instantly) of this feature too so as to
be clear to the user.
Yes i will need also to give it back the original color once the user do
another search for another feature.
Concerning the ColorThemingStyle i didn't get it well and how to use it.
PLZ where can i find the code to render colors from R_G_B attribute?

Ok Jukka i'll try to do the method you suggested even if it seems to be
difficult :D.

thank you very much.

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-07 Thread edgar . soldin
is the yellow border not enough to identify selected geometries?

..ede

On 06.03.2013 23:56, Asma ouqalli wrote:
> Hello,
> I need to change the color of the selected data.
> Can anyone help me to find in which class or which method that changes colors 
> and give the selected data a specefic or random color different from the old 
> one.
> thanks in advance.

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-07 Thread Rahkonen Jukka
Hi,

I hint for the developers: in Kosmo it is possible to set the line colour, fill 
colour and fill transparency for the selected features.  Also the style, size 
and colour of vertices is configurable but it looks like vertices are drawn 
only if the layer is in edit mode.

-Jukka Rahkonen-

Asma ouqalli wrote:

Hello Michaud, Jukka Rahkonen,
no i don't want to apply the color permanently.
i guess i didn't explain correctly, so my plugin search for features from the 
layer that matchs the user's needs and zook on the feature, i want to change 
color  (not only the border instantly) of this feature too so as to be clear to 
the user.
Yes i will need also to give it back the original color once the user do 
another search for another feature.
Concerning the ColorThemingStyle i didn't get it well and how to use it.
PLZ where can i find the code to render colors from R_G_B attribute?

Ok Jukka i'll try to do the method you suggested even if it seems to be 
difficult :D.

thank you very much.

--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-07 Thread Giuseppe Aruta
Hi
@Jukka
> Perhaps use of R_G_B field for theme colouring should be deactivated from
the user interface.

This could be done simple renaming R_G_B to something else by attribute
panel. We only should find a more easy way for users

>Perhaps theme colouring could be used in opposite way so that there would
be on option to write the colour values from the classification into the
R_G_B attribute. That way it would be fast to make an initial colouring for
the whole map and fix it by hand to look perfect.

This is an interesting point. It means that Color classificationvalues
should be translated into hexadecimal codes and added to single feature
attribute values. ColorChooser plugin derives from SkyJUMP, maybe Larry
Backer has an idea about this (I also note that this way could be a
solution to save the style of a file to be used into other OJ projects)

@ Asma
>where can i find the code to render colors from R_G_B attribute?

The file is  com.vividsolutions.jump.workbench.ui.renderer.style.BasicStyle
Check the codes with this lines:
/* Giuseppe Aruta 11-june-2012
* Added code from SkyJUMP BasicStyle to enable color chooser plugin
 */

regards

Peppe



2013/3/7 Asma ouqalli 

> Hello Michaud, Jukka Rahkonen,
> no i don't want to apply the color permanently.
> i guess i didn't explain correctly, so my plugin search for features from
> the layer that matchs the user's needs and zook on the feature, i want to
> change color  (not only the border instantly) of this feature too so as to
> be clear to the user.
> Yes i will need also to give it back the original color once the user do
> another search for another feature.
> Concerning the ColorThemingStyle i didn't get it well and how to use it.
> PLZ where can i find the code to render colors from R_G_B attribute?
>
> Ok Jukka i'll try to do the method you suggested even if it seems to be
> difficult :D.
>
> thank you very much.
>
> --
> *Asma OUQALLI*
>
> Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
> Chef de commission développement professionnel  - Rotaract EHTP.
> Chef de cellule Media - Olympiades EHTP 2012.
>   Ecole Hassania des Travaux Publics.
>Mobile : +212 672 48 23 15.
>Email : asma.ouqa...@gmail.com
>
>
>
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-07 Thread Michaël Michaud
Le 07/03/2013 10:05, Rahkonen Jukka a écrit :
> Hi,
>
> I did not know about the general R_G_B field support.  I can see that if hand 
> coloured layer is saved into OpenJUMP project it is considered to be 
> classified by unique values of R_G_B field.  This has some consequences. 
> After opening such a project OJ shows layer styles as if theme colouring is 
> active.
I cannot reproduce that.
I created a layer,
added R_G_B attribute,
saved the file and the project,
re-opened it
The ColorTheming is not activated.
But if I choose ColorTheming tab, I can select R_G_B attribute, which is
not compatible with how R_G_B attribute works.

I fill a bug report : de-activate R_G_B attribute in ColorTheming
> However, it is not possible to adjust colours from the theme colouring tab. 
> Only editing R_G_B field value has on effect on colours. Perhaps use of R_G_B 
> field for theme colouring should be deactivated from the user interface.
Agree
> Perhaps theme colouring could be used in opposite way so that there would be 
> on option to write the colour values from the classification into the R_G_B 
> attribute. That way it would be fast to make an initial colouring for the 
> whole map and fix it by hand to look perfect.
Would be a good idea. Will fill a Feature Request (with a low priority)
> By the way, OJ has just a small fixed predefined colour palette set for theme 
> colouring. Kosmo developers have added a feature rich palette editor which is 
> worth having a look.
Have to see that,

Michaël
>
> -Jukka-
>
>   Michaël Michaud wrote:
>> Hi,
>>
>> I thought R_G_B system worked only with the plugin, but the plugin is only
>> needed to pick-up colors from the UI.
>> The code to render colors from R_G_B attribute has been added by Pepe in
>> the BasicStyle code (which, IMHO, is fine).
>>
>> The idea of a style able to render a polygon layer with four colors is a nice
>> idea.
>> The four color theorem has been so hard to prove that I doubt that the
>> implementation of such a plugin is an easy task, but it would be an 
>> interesting
>> theme for a student or any person with a good mathematical (graph)
>> knowledge.
>>
>> Michaël
>>> Hi,
>>>
>>> R_G_B system works only with Color chooser plugin which comes with
>> OpenJUMP Plus. Perhaps that plugin could be modified to give random fills
>> for the selected polygons.
>>> Here comes another idea. Sometimes it would be nice to have polygon
>> maps where adjacent polygons have different colors according to the four
>> color theorem. Or seven colors it that would be easier to compute. That
>> feature would also suit well as an option for Color chooser plugin.
>>> http://en.wikipedia.org/wiki/Four_color_theorem>> g/wiki/Four_color_theorem.>
>>> http://people.math.gatech.edu/~thomas/FC/fourcolor.html
>>> http://146.163.152.131/teaching/projects/poettker_final.pdf
>>>
>>> -Jukka Rahkonen-
>>>
>>>
>>> 
>>> Michaël Michaud wrote:
>>>
>>> Hi,
>>> I need to change the color of the selected data.
>>> Can anyone help me to find in which class or which method that changes
>> colors and give the selected data a specefic or random color different from
>> the old one.
>>> thanks in advance.
 Do you want to "show" selected features, and give them back the
 original color if the selection change or do you want to apply the new 
 color
>> permanently ?
 In the first case, you just have to "select" features so that they
 appear with the thick yellow* border line. Use the SelectionManager
 and FeatureSelection classes *Can be change from the options In the
 second case, you'll have to use an attribute to store the color
 information (which means you have to modify or prepare the schema for
 that) You can either put semantic information in the attribute then
 apply a ColorThemingStyle (which may be a bit tricky) or, more
 simple, add a "R_G_B" attribute and store colors as RRVVBB
 hexadecimal values.
 Michaël
>>>
>>> --
>>> *Asma OUQALLI*
>>>
>>> Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
>>> Chef de commission développement professionnel  - Rotaract EHTP.
>>> Chef de cellule Media - Olympiades EHTP 2012.
>>> Ecole Hassania des Travaux Publics.
>>>  Mobile : +212 672 48 23 15.
>>>  Email : asma.ouqa...@gmail.com
>>>
>>>
>>>
>>>
>>> --
>>>  Symantec Endpoint Protection 12 positioned as A LEADER in The
>>> Forrester
>>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in
>>> the endpoint security space. For insight on selecting the right
>>> partner to tackle endpoint security challenges, access the full report.
>>> http://p.sf.net/sfu/symantec-dev2dev
>>>
>>>
>>>
>>> ___
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net>> 

Re: [JPP-Devel] Change the color of the selected feature

2013-03-07 Thread Michaël Michaud

Hi,

OK, what you really want (personalized selection rendering) is not a 
built-in option,

and you will have to implement it. You can start by the following classes :

- com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer

- org.openjump.core.ui.SelectionStyllingOptionsPanel

Michaël



Hello Michaud, Jukka Rahkonen,
no i don't want to apply the color permanently.
i guess i didn't explain correctly, so my plugin search for features 
from the layer that matchs the user's needs and zook on the feature, i 
want to change color  (not only the border instantly) of this feature 
too so as to be clear to the user.
Yes i will need also to give it back the original color once the user 
do another search for another feature.

Concerning the ColorThemingStyle i didn't get it well and how to use it.
PLZ where can i find the code to render colors from R_G_B attribute?

Ok Jukka i'll try to do the method you suggested even if it seems to 
be difficult :D.


thank you very much.

--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-08 Thread Rahkonen Jukka
Michaël Michaud wrote:
 
> Le 07/03/2013 10:05, Rahkonen Jukka a écrit :
> > Hi,
> >
> > I did not know about the general R_G_B field support.  I can see that if
> hand coloured layer is saved into OpenJUMP project it is considered to be
> classified by unique values of R_G_B field.  This has some consequences.
> After opening such a project OJ shows layer styles as if theme colouring is
> active.
> I cannot reproduce that.

Neither can I.. The legend showing me the four-colour-box symbol in front of 
the layer name and individual classes in subtree must have been some ghost 
phenomena.  I probably activated colour theming accidentally myself.

-Jukka-

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-10 Thread Matthias Scholz
Hi,

don't know if I'm wrong, but take a look at the Options -> Selection 
styling. Here you can change the yellow default line color and the point.

Matthias
> Hi,
>
> OK, what you really want (personalized selection rendering) is not a 
> built-in option,
> and you will have to implement it. You can start by the following 
> classes :
>
> - com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer
>
> - org.openjump.core.ui.SelectionStyllingOptionsPanel
>
> Michaël
>
>
>> Hello Michaud, Jukka Rahkonen,
>> no i don't want to apply the color permanently.
>> i guess i didn't explain correctly, so my plugin search for features 
>> from the layer that matchs the user's needs and zook on the feature, 
>> i want to change color  (not only the border instantly) of this 
>> feature too so as to be clear to the user.
>> Yes i will need also to give it back the original color once the user 
>> do another search for another feature.
>> Concerning the ColorThemingStyle i didn't get it well and how to use it.
>> PLZ where can i find the code to render colors from R_G_B attribute?
>>
>> Ok Jukka i'll try to do the method you suggested even if it seems to 
>> be difficult :D.
>>
>> thank you very much.
>>
>> -- 
>> *Asma OUQALLI*
>>
>> Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
>> Chef de commission développement professionnel  - Rotaract EHTP.
>> Chef de cellule Media - Olympiades EHTP 2012.
>>   Ecole Hassania des Travaux Publics.
>>Mobile : +212 672 48 23 15.
>>Email : asma.ouqa...@gmail.com 
>>
>>
>>
>> --
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
>> endpoint security space. For insight on selecting the right partner to 
>> tackle endpoint security challenges, access the full report. 
>> http://p.sf.net/sfu/symantec-dev2dev
>>
>>
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>> 
>
> 
>
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
> endpoint security space. For insight on selecting the right partner to 
> tackle endpoint security challenges, access the full report. 
> http://p.sf.net/sfu/symantec-dev2dev
> 
>
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>   


-- 

 _ __ ___ _ ___ __ _
 
  Technologieconsulting
  Matthias Scholz
  Siebigeröder Str 17a
  06308 Klostermansfeld

  T +49 34772 34150
  E m...@jammerhund.de
  W www.openjump.de
_ __ ___ _ ___ __ _


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-10 Thread Michaël Michaud
Hi

Nice to read you Matthias,

You're perfectly right about selection styling option.
Your work isn't it ?
I pointed to Asma the SelectionStyllingOptionsPanel
as it is where these options are defined,
but I missed to point how to change this from the UI.

Michaël
> Hi,
>
> don't know if I'm wrong, but take a look at the Options -> Selection
> styling. Here you can change the yellow default line color and the point.
>
> Matthias
>> Hi,
>>
>> OK, what you really want (personalized selection rendering) is not a
>> built-in option,
>> and you will have to implement it. You can start by the following
>> classes :
>>
>> - com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer
>>
>> - org.openjump.core.ui.SelectionStyllingOptionsPanel
>>
>> Michaël
>>
>>
>>> Hello Michaud, Jukka Rahkonen,
>>> no i don't want to apply the color permanently.
>>> i guess i didn't explain correctly, so my plugin search for features
>>> from the layer that matchs the user's needs and zook on the feature,
>>> i want to change color  (not only the border instantly) of this
>>> feature too so as to be clear to the user.
>>> Yes i will need also to give it back the original color once the user
>>> do another search for another feature.
>>> Concerning the ColorThemingStyle i didn't get it well and how to use it.
>>> PLZ where can i find the code to render colors from R_G_B attribute?
>>>
>>> Ok Jukka i'll try to do the method you suggested even if it seems to
>>> be difficult :D.
>>>
>>> thank you very much.
>>>
>>> -- 
>>> *Asma OUQALLI*
>>>
>>> Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
>>> Chef de commission développement professionnel  - Rotaract EHTP.
>>> Chef de cellule Media - Olympiades EHTP 2012.
>>>Ecole Hassania des Travaux Publics.
>>> Mobile : +212 672 48 23 15.
>>> Email : asma.ouqa...@gmail.com 
>>>
>>>
>>>
>>> --
>>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>>> endpoint security space. For insight on selecting the right partner to
>>> tackle endpoint security challenges, access the full report.
>>> http://p.sf.net/sfu/symantec-dev2dev
>>>
>>>
>>> ___
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>  
>> 
>>
>> --
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>> 
>>
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-10 Thread Rahkonen Jukka
Hi,

Changing line colour was not enough for Asma, he wanted to change the fill 
colour too.  That is possible to do in Kosmo.

-Jukka Rahkonen-


Michaël Michaud wrote:

> Hi

> Nice to read you Matthias,

> You're perfectly right about selection styling option.
> Your work isn't it ?
> I pointed to Asma the SelectionStyllingOptionsPanel
> as it is where these options are defined,
> but I missed to point how to change this from the UI.

Michaël
> Hi,
>
> don't know if I'm wrong, but take a look at the Options -> Selection
> styling. Here you can change the yellow default line color and the point.
>
> Matthias
>> Hi,
>>
>> OK, what you really want (personalized selection rendering) is not a
>> built-in option,
>> and you will have to implement it. You can start by the following
>> classes :
>>
>> - com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer
>>
>> - org.openjump.core.ui.SelectionStyllingOptionsPanel
>>
>> Michaël
>>
>>
>>> Hello Michaud, Jukka Rahkonen,
>>> no i don't want to apply the color permanently.
>>> i guess i didn't explain correctly, so my plugin search for features
>>> from the layer that matchs the user's needs and zook on the feature,
>>> i want to change color  (not only the border instantly) of this
>>> feature too so as to be clear to the user.
>>> Yes i will need also to give it back the original color once the user
>>> do another search for another feature.
>>> Concerning the ColorThemingStyle i didn't get it well and how to use it.
>>> PLZ where can i find the code to render colors from R_G_B attribute?
>>>
>>> Ok Jukka i'll try to do the method you suggested even if it seems to
>>> be difficult :D.
>>>
>>> thank you very much.
>>>
>>> --
>>> *Asma OUQALLI*
>>>
>>> Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
>>> Chef de commission développement professionnel  - Rotaract EHTP.
>>> Chef de cellule Media - Olympiades EHTP 2012.
>>>Ecole Hassania des Travaux Publics.
>>> Mobile : +212 672 48 23 15.
>>> Email : asma.ouqa...@gmail.com 
>>>
>>>
>>>
>>> --
>>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>>> endpoint security space. For insight on selecting the right partner to
>>> tackle endpoint security challenges, access the full report.
>>> http://p.sf.net/sfu/symantec-dev2dev
>>>
>>>
>>> ___
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>
>> 
>>
>> --
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>> 
>>
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-10 Thread edgar . soldin
and don't forget the zooming to selection and outline blinking.. not sure what 
kind of users he is targeting at ;)

..ede

On 10.03.2013 12:35, Rahkonen Jukka wrote:
> Hi,
> 
> Changing line colour was not enough for Asma, he wanted to change the fill 
> colour too.  That is possible to do in Kosmo.
> 
> -Jukka Rahkonen-
> 
> 
> Michaël Michaud wrote:
> 
>> Hi
> 
>> Nice to read you Matthias,
> 
>> You're perfectly right about selection styling option.
>> Your work isn't it ?
>> I pointed to Asma the SelectionStyllingOptionsPanel
>> as it is where these options are defined,
>> but I missed to point how to change this from the UI.
> 
> Michaël
>> Hi,
>>
>> don't know if I'm wrong, but take a look at the Options -> Selection
>> styling. Here you can change the yellow default line color and the point.
>>
>> Matthias
>>> Hi,
>>>
>>> OK, what you really want (personalized selection rendering) is not a
>>> built-in option,
>>> and you will have to implement it. You can start by the following
>>> classes :
>>>
>>> - com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer
>>>
>>> - org.openjump.core.ui.SelectionStyllingOptionsPanel
>>>
>>> Michaël
>>>
>>>
 Hello Michaud, Jukka Rahkonen,
 no i don't want to apply the color permanently.
 i guess i didn't explain correctly, so my plugin search for features
 from the layer that matchs the user's needs and zook on the feature,
 i want to change color  (not only the border instantly) of this
 feature too so as to be clear to the user.
 Yes i will need also to give it back the original color once the user
 do another search for another feature.
 Concerning the ColorThemingStyle i didn't get it well and how to use it.
 PLZ where can i find the code to render colors from R_G_B attribute?

 Ok Jukka i'll try to do the method you suggested even if it seems to
 be difficult :D.

 thank you very much.

 --
 *Asma OUQALLI*

 Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
 Chef de commission développement professionnel  - Rotaract EHTP.
 Chef de cellule Media - Olympiades EHTP 2012.
Ecole Hassania des Travaux Publics.
 Mobile : +212 672 48 23 15.
 Email : asma.ouqa...@gmail.com 

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-11 Thread Matthias Scholz
Hi Michaël
> Hi
>
> Nice to read you Matthias,
>
> You're perfectly right about selection styling option.
> Your work isn't it ?
Yes this was my first OJ contribution...
> I pointed to Asma the SelectionStyllingOptionsPanel
> as it is where these options are defined,
> but I missed to point how to change this from the UI.
>
> Michaël
>> Hi,
>>
>> don't know if I'm wrong, but take a look at the Options -> Selection
>> styling. Here you can change the yellow default line color and the point.
>>
>> Matthias
>>> Hi,
>>>
>>> OK, what you really want (personalized selection rendering) is not a
>>> built-in option,
>>> and you will have to implement it. You can start by the following
>>> classes :
>>>
>>> - com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer
>>>
>>> - org.openjump.core.ui.SelectionStyllingOptionsPanel
>>>
>>> Michaël
>>>
>>>
 Hello Michaud, Jukka Rahkonen,
 no i don't want to apply the color permanently.
 i guess i didn't explain correctly, so my plugin search for features
 from the layer that matchs the user's needs and zook on the feature,
 i want to change color  (not only the border instantly) of this
 feature too so as to be clear to the user.
 Yes i will need also to give it back the original color once the user
 do another search for another feature.
 Concerning the ColorThemingStyle i didn't get it well and how to use it.
 PLZ where can i find the code to render colors from R_G_B attribute?

 Ok Jukka i'll try to do the method you suggested even if it seems to
 be difficult :D.

 thank you very much.

 -- 
 *Asma OUQALLI*

 Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
 Chef de commission développement professionnel  - Rotaract EHTP.
 Chef de cellule Media - Olympiades EHTP 2012.
 Ecole Hassania des Travaux Publics.
  Mobile : +212 672 48 23 15.
  Email : asma.ouqa...@gmail.com 



 --
 Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
 Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
 endpoint security space. For insight on selecting the right partner to
 tackle endpoint security challenges, access the full report.
 http://p.sf.net/sfu/symantec-dev2dev


 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
   
>>> 
>>>
>>> --
>>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>>> endpoint security space. For insight on selecting the right partner to
>>> tackle endpoint security challenges, access the full report.
>>> http://p.sf.net/sfu/symantec-dev2dev
>>> 
>>>
>>> ___
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>> 
>
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-11 Thread Matthias Scholz
I can write this to my TODO list ;-)
> and don't forget the zooming to selection and outline blinking.. not sure 
> what kind of users he is targeting at ;)
>
> ..ede
>
> On 10.03.2013 12:35, Rahkonen Jukka wrote:
>> Hi,
>>
>> Changing line colour was not enough for Asma, he wanted to change the fill 
>> colour too.  That is possible to do in Kosmo.
>>
>> -Jukka Rahkonen-
>>
>> 
>> Michaël Michaud wrote:
>>
>>> Hi
>>> Nice to read you Matthias,
>>> You're perfectly right about selection styling option.
>>> Your work isn't it ?
>>> I pointed to Asma the SelectionStyllingOptionsPanel
>>> as it is where these options are defined,
>>> but I missed to point how to change this from the UI.
>> Michaël
>>> Hi,
>>>
>>> don't know if I'm wrong, but take a look at the Options -> Selection
>>> styling. Here you can change the yellow default line color and the point.
>>>
>>> Matthias
 Hi,

 OK, what you really want (personalized selection rendering) is not a
 built-in option,
 and you will have to implement it. You can start by the following
 classes :

 - com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer

 - org.openjump.core.ui.SelectionStyllingOptionsPanel

 Michaël


> Hello Michaud, Jukka Rahkonen,
> no i don't want to apply the color permanently.
> i guess i didn't explain correctly, so my plugin search for features
> from the layer that matchs the user's needs and zook on the feature,
> i want to change color  (not only the border instantly) of this
> feature too so as to be clear to the user.
> Yes i will need also to give it back the original color once the user
> do another search for another feature.
> Concerning the ColorThemingStyle i didn't get it well and how to use it.
> PLZ where can i find the code to render colors from R_G_B attribute?
>
> Ok Jukka i'll try to do the method you suggested even if it seems to
> be difficult :D.
>
> thank you very much.
>
> --
> *Asma OUQALLI*
>
> Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
> Chef de commission développement professionnel  - Rotaract EHTP.
> Chef de cellule Media - Olympiades EHTP 2012.
> Ecole Hassania des Travaux Publics.
>  Mobile : +212 672 48 23 15.
>  Email : asma.ouqa...@gmail.com 
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


-- 

  _ __ ___ _ ___ __ _
  
   Technologieconsulting
   Matthias Scholz
   Siebigeröder Str 17a
   06308 Klostermansfeld

   T +49 34772 34150
   E m...@jammerhund.de
   W http://www.openjump.de
_ __ ___ _ ___ __ _


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-12 Thread Asma ouqalli
Hello every body,
i tried to do the same as the method updateStyles()
in ColorThemingStylePanel.class  but i didn't reach to do it, Since i don't
need the modelTable, i think it's not a good way, because what i want to do
is to change the color of the selected feature. Not all of then as the
ColorThemingStylePnale does.
Plz i need your help about this.
i tried to settheBasicStyle but it's applicated only to the layer not to a
specific Feature.
Do i have to use Paint Method ?

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-12 Thread Michaël Michaud

Hi Asma,

Have you look at the classes I told you a few days ago :

This one should be inherited by classes who want to render selected features
(seems what you want to do ?)
*com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer**

*This one seems to implement exectly what you want
*com.vividsolutions.jump.workbench.ui.renderer.SelectionBackgroundRenderer
*I think that selected features are currently filled with yellow, but 
this is

partly hidden behind the normal fill color*.
*It is probably only a matter of rendering order and transparency
*
*See also these classes to see how styles are applyed :*
*RenderingManager and SelectionManager to see how rendering is done

This class is the panel available in options where the user can define
the color of the selection outline (can be useful to see how the selection
renderer is customized and applied, especially in the okPressed method)
*org.openjump.core.ui.SelectionStyllingOptionsPanel*

Hope that helps,

Michaël



Hello every body,
i tried to do the same as the method updateStyles() 
in ColorThemingStylePanel.class  but i didn't reach to do it, Since i 
don't need the modelTable, i think it's not a good way, because what i 
want to do is to change the color of the selected feature. Not all of 
then as the ColorThemingStylePnale does.

Plz i need your help about this.
i tried to settheBasicStyle but it's applicated only to the layer not 
to a specific Feature.

Do i have to use Paint Method ?

--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-12 Thread Asma ouqalli
Hi Michael,
Yes i had a look at this last time, but sorry i didn't get well the
structure.
if i understand i have to apply the paint method to my feature, but i don't
know about the other parameter (  graphic and viewport ...)?

"paint(Geometry geometry, Graphics2D g,
Viewport viewport, boolean renderingFill, Stroke fillStroke,
Paint fillPaint, boolean renderingLine, Stroke lineStroke,
Color lineColor)"

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-13 Thread Michaël Michaud

Hi Asma,

I think the AbstractSelectionRenderer miss a setFillColor to make it 
easily customizable.


You can change the fillColor permanently in the constructor to check it 
does what you need.


I'll add an accessor to fillColor to make customization easier.

Michaël


Hi Michael,
Yes i had a look at this last time, but sorry i didn't get well the 
structure.
if i understand i have to apply the paint method to my feature, but i 
don't know about the other parameter (  graphic and viewport ...)?


"paint(Geometry geometry, Graphics2D g,
Viewport viewport, boolean renderingFill, Stroke fillStroke,
Paint fillPaint, boolean renderingLine, Stroke lineStroke,
Color lineColor)"

--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-13 Thread Asma ouqalli
hi michael,
i followed the class u told me, i found that it uses the paint method too
from StyleUtil.

i tried this but it did nothing to the feature:
another thing is i don't know how instanciate paint  ( with what)


Color color = Color.yellow;
Stroke stroke =new
BasicStroke(5,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND);
final Graphics2D graphics = (Graphics2D)
context.getLayerViewPanel().getGraphics();

Viewport viewport = new Viewport(context.getLayerViewPanel());
Paint fillPaint = null;

paintGeometryCollection(selectedGeometry(),
graphics, viewport, true,
stroke,fillPaint, true,
stroke, color);


the selectedGeometry() is this :

public GeometryCollection selectedGeometry() {
 GeometryCollection geometry;
 geometry = (GeometryCollection) search().getGeometry();
 return geometry;
}

thanks in advance



-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-13 Thread Michaël Michaud

Hi,

OK, now that I've read again most useful classes for selection rendering,
I found it easier to extend the customization panel.

Starting with revision 3320 (snapshot), you will be able to

- define fill color and opacity of selection from the option panel

- define fill color and opacity of selection programmatically with 
(untested) :


AbstractSelectionRenderer renderer = (AbstractSelectionRenderer)
pluginContext // you should have a pluginContext in your plugin
.getLayerViewPanel()
.getRenderingManager()
.getRenderer(FeatureSelectionRenderer.CONTENT_ID);

renderer.setSelectionFillColor(Color color);
// setSelectionFillColor is a new method

Michaël



hi michael,
i followed the class u told me, i found that it uses the paint method 
too from StyleUtil.


i tried this but it did nothing to the feature:
another thing is i don't know how instanciate paint  ( with what)


Color color = Color.yellow;
Stroke stroke =new 
BasicStroke(5,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND);
final Graphics2D graphics = (Graphics2D) 
context.getLayerViewPanel().getGraphics();


Viewport viewport = new Viewport(context.getLayerViewPanel());
Paint fillPaint = null;

paintGeometryCollection(selectedGeometry(),
 graphics, viewport, true,
 stroke,fillPaint, true,
 stroke, color);


the selectedGeometry() is this :

public GeometryCollection selectedGeometry() {
GeometryCollection geometry;
geometry = (GeometryCollection) search().getGeometry();
return geometry;
}

thanks in advance



--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-13 Thread Asma ouqalli
thank you michael,
plz where can i find the setSelectionFillColor(color) method ?
thnks in advance

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-13 Thread Michaël Michaud

Hi,

thank you michael,
plz where can i find the setSelectionFillColor(color) method ?
thnks in advance

In AbstractSelectionRenderer class, as shown in my previous code snippet.

You'll not find it in the online javadoc as it is not yet updated, but 
if you use

svn to work with OpenJUMP sources or if you get the last snapshot to use
OpenJUMP as a dependency of your plugin you should be able to use the
new method :
http://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/trunk/src/com/vividsolutions/jump/workbench/ui/renderer/AbstractSelectionRenderer.java?revision=3319&view=markup&sortby=date

Michaël


--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-13 Thread Asma ouqalli
Hey michael,
No i didn't use svn to download the code source, i download it from the
sourceforge and import it to my workspace.
so i have to download the latest version, or i'll have to do it from svn
repository ?

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-13 Thread Michaël Michaud

Hi,
No i didn't use svn to download the code source, i download it from 
the sourceforge and import it to my workspace.
so i have to download the latest version, or i'll have to do it from 
svn repository ?
Just checked that we have no source bundle in the snapshot, so the best 
is that you get the source from  svn.


But to develop a plugin (without modyfing openjump source code) you can 
also create you project and use openjump .jar files as dependencies.
Necessary .jar files (openjump-1.6.0*.jar, jts-1.13.jar...) are included 
in all snapshot distribution.


Michaël


--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread edgar . soldin
On 13.03.2013 23:51, Michaël Michaud wrote:
> Hi,
>> No i didn't use svn to download the code source, i download it from the 
>> sourceforge and import it to my workspace.
>> so i have to download the latest version, or i'll have to do it from svn 
>> repository ?
> Just checked that we have no source bundle in the snapshot, so the best is 
> that you get the source from  svn.

actually the snapshot source bundle is 

- the lib/OJ*.jar, plus
- language/ folder

of snapshots ;)..

> But to develop a plugin (without modyfing openjump source code) you can also 
> create you project and use openjump .jar files as dependencies.
> Necessary .jar files (openjump-1.6.0*.jar, jts-1.13.jar...) are included in 
> all snapshot distribution.
> 

including the sources, see above. ..ede

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Asma ouqalli
hello michael and edgar,
ok thanks for the info,
@michael, by the way i tried the code you provide me with.
and i replace the argumetn of getRenderer with search().getID()
because search() method where i have my BasicFeature that i want it's color
to be changed ( i guess i didn't explain well my issue)
the method search()  search for a feature based on criteria provided by the
user and then my plugin must zoom in it and change it's color so as the
user can differenciate between the parcel (feature) that he wants and the
others next to him.
i succeeded to zokk in the parcels but i didn't in changing color ( i tried
paint method but it didn't work)

AbstractSelectionRenderer renderer = (AbstractSelectionRenderer)
 context
 .getLayerViewPanel()
 .getRenderingManager()
 .getRenderer(search().getID());

renderer.setSelectionFillColor(color);



-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Michaël Michaud
Hi,
> actually the snapshot source bundle is
>
> - the lib/OJ*.jar, plus
> - language/ folder
>
> of snapshots ;)..
Oh, great, I forgot it...

Michaël
>
>> But to develop a plugin (without modyfing openjump source code) you can also 
>> create you project and use openjump .jar files as dependencies.
>> Necessary .jar files (openjump-1.6.0*.jar, jts-1.13.jar...) are included in 
>> all snapshot distribution.
>>
> including the sources, see above. ..ede
>
> --
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Michaël Michaud

Hi Asma,

From the begining, we have supposed that features returned by
your method are not only the result of your query but also
a *"selection" *(in the terminology of OpenJUMP).
Did you select your features ?
See how SelectionManager

You can get the FeatureSelection object lieke this :

FeatureSelection selectedFeatures = context.getLayerViewPanel()
.getSelectionManager()
.getFeatureSelection();

And clean/add features like this :
selectedFeatures.unselectItems()
selectedFeatures.selectItems(layer, okFeatures);

Michaël

hello michael and edgar,
ok thanks for the info,
@michael, by the way i tried the code you provide me with.
and i replace the argumetn of getRenderer with search().getID()
because search() method where i have my BasicFeature that i want it's 
color to be changed ( i guess i didn't explain well my issue)
the method search()  search for a feature based on criteria provided 
by the user and then my plugin must zoom in it and change it's color 
so as the user can differenciate between the parcel (feature) that he 
wants and the others next to him.
i succeeded to zokk in the parcels but i didn't in changing color ( i 
tried paint method but it didn't work)


AbstractSelectionRenderer renderer = (AbstractSelectionRenderer)
context
  .getLayerViewPanel()
  .getRenderingManager()
  .getRenderer(search().getID());

 renderer.setSelectionFillColor(color);



--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Asma ouqalli
Hello michael,
no i didn't select my feature, i just return it in this method so as to
display some of it's propreities, and zoom in it in the same time , so i
want it to be coloured too just after zooming on it.
the method search() get's only the BasicFeature that's correspond to the
search and the feature it's not selected.
i hope you understand my issue here, i didn't explain well i guess,
thanks in advance

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Michaël Michaud

Hi,

I think I understood what you want to do.
And using selection would be an easy way to achieve what you want.
I don't tell to select features from the user interface, I know you get 
them

from your search method.
But if you put the result of your search in the active selection, you will
be able to use the AbstractSelectionRenderer.
If you don't want to use selection (because you don't want returned
object to be selected) we'll have to find another way to paint your 
features.


Michaël

En français :
OpenJUMP définit un style unique pour une couche entière (BasicStyle)
mais dispose aussi d'un style spécial qui s'applique aux objets 
sélectionnés.

Ce style spécial est maintenant entièrement personnalisable via l'interface
ou par programmation, si bien que je pense que la méthode la plus simple
pour toi est de "sélectionner" par programme les objets résultant de ta
recherche (cf code dans mail précédent).
Ainsi ces objets prendront automatiquement le style de ton choix défini
pour les objets sélectionnés.
Si tu veux que la notion de sélection (faite à la souris) et le résultat de
ta recherche (fonction search) restent deux choses bien distinctes, avec
chacune leur symbolisation, alors ma proposition ne convient pas et
il faudra trouver un moyen de repeindre certains objets et pas d'autres
(peut-être en s'inspirant de la manière dont marche ColorTheming).

Michaël




Hello michael,
no i didn't select my feature, i just return it in this method so as 
to display some of it's propreities, and zoom in it in the same time , 
so i want it to be coloured too just after zooming on it.
the method search() get's only the BasicFeature that's correspond to 
the search and the feature it's not selected.

i hope you understand my issue here, i didn't explain well i guess,
thanks in advance

--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Rahkonen Jukka
Hi,

Perhaps it could be possible to write R_G_B intp basic style somehow like the 
color chooser plugin does but directly from program?

-Jukka-

Michaël Michaud wrote:

> Hi,

> I think I understood what you want to do.
> And using selection would be an easy way to achieve what you want.
> I don't tell to select features from the user interface, I know you get them
>  from your search method.
> But if you put the result of your search in the active selection, you will
> be able to use the AbstractSelectionRenderer.
> If you don't want to use selection (because you don't want returned
> object to be selected) we'll have to find another way to paint your features.

> Michaël

En français :
OpenJUMP définit un style unique pour une couche entière (BasicStyle)
mais dispose aussi d'un style spécial qui s'applique aux objets sélectionnés.
Ce style spécial est maintenant entièrement personnalisable via l'interface
ou par programmation, si bien que je pense que la méthode la plus simple
pour toi est de "sélectionner" par programme les objets résultant de ta
recherche (cf code dans mail précédent).
Ainsi ces objets prendront automatiquement le style de ton choix défini
pour les objets sélectionnés.
Si tu veux que la notion de sélection (faite à la souris) et le résultat de
ta recherche (fonction search) restent deux choses bien distinctes, avec
chacune leur symbolisation, alors ma proposition ne convient pas et
il faudra trouver un moyen de repeindre certains objets et pas d'autres
(peut-être en s'inspirant de la manière dont marche ColorTheming).

Michaël



Hello michael,
no i didn't select my feature, i just return it in this method so as to display 
some of it's propreities, and zoom in it in the same time , so i want it to be 
coloured too just after zooming on it.
the method search() get's only the BasicFeature that's correspond to the search 
and the feature it's not selected.
i hope you understand my issue here, i didn't explain well i guess,
thanks in advance

--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com




--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Asma ouqalli
Hello michael,
Thank you,
ok i'll try to put the search result in the active selection.
but i don't know how.
Concerning the ColorTherming, i tried to paint my feature like this :
but it didn't work:

Color color = Color.yellow;
Stroke stroke =new BasicStroke(5,
BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND);
final Graphics2D graphics = (Graphics2D)
context.getLayerViewPanel().getGraphics();
Viewport viewport = new Viewport(context.getLayerViewPanel());
Paint fillPaint = null;   / this i don't know how to use it and instanciate
it
paintGeometryCollection(selectedGeometry(),graphics, viewport, true,
 stroke,fillPaint, true,stroke, color);


@ Rahkonen,
Sorry but i didn't get what you mean by write R_G_B into basic Style :s
-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Michaël Michaud

Hi,

Hello michael,
Thank you,
ok i'll try to put the search result in the active selection.
but i don't know how.

I already gave you a few lines of code which does exactly that.

Concerning the ColorTherming, i tried to paint my feature like this :
but it didn't work:

Color color = Color.yellow;
Stroke stroke =new BasicStroke(5, 
BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND);
final Graphics2D graphics = (Graphics2D) 
context.getLayerViewPanel().getGraphics();

Viewport viewport = new Viewport(context.getLayerViewPanel());
Paint fillPaint = null;   / this i don't know how to use it and 
instanciate it
paintGeometryCollection(selectedGeometry(),   graphics, viewport, 
true,   stroke,fillPaint, true,   stroke, color);



Hard to say what is wrong without having the whole class.
Any reason to create a new Viewport ? I would say that you'd
better use the existing viewport of the layerView :
viewport = context.getLayerViewPanel().getViewport();

Michaël



@ Rahkonen,
Sorry but i didn't get what you mean by write R_G_B into basic Style :s
--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-14 Thread Rahkonen Jukka
Asma ouqalli wrote:

> @ Rahkonen,
> Sorry but i didn't get what you mean by write R_G_B into basic Style :s
> --
> *Asma OUQALLI*

I was meaning that if you select some features and use the Pick Color tool 
(small arrow in the right end of the icon bar) in OpenJUMP Plus for setting 
some color for them the end result perhaps look like what is your aim.  I read 
some time ago that something called Basic style contains a R_G_B element which 
takes care or this colouring. I was wondering if it is something you could 
utilise. Start new selection by wiping out R_G_B from all features of the layer 
and write a desired value for those selected by a new query.

-Jukka Rahkonen-

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-15 Thread Asma ouqalli
Hello Michael,
Thank you verry much it worked, the feature is not coloured but it's
flashed and i guess it's enough. (the outline are flashed with the yellow
color and the fill with black i guess because i didn't specified the
fillPaint. Do you have any idea how to change it?

i don't get why i didn't work with my previous code that uses also the
existing viewport.
in other worlds what's the difference between :
Viewport viewport = new Viewport(context.getLayerViewPanel());
Viewport  viewport = context.getLayerViewPanel().getViewport();


-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-15 Thread Asma ouqalli
Hi Rahkonen,
Thanks for the explanation, i tried the paint method and it worked, the
Basic Style uses also this method.
thanks a lot

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature

2013-03-16 Thread Michaël Michaud

Hi,

Hello Michael,
Thank you verry much it worked, the feature is not coloured but it's 
flashed and i guess it's enough. (the outline are flashed with the 
yellow color and the fill with black i guess because i didn't 
specified the fillPaint. Do you have any idea how to change it?


i don't get why i didn't work with my previous code that uses also the 
existing viewport.

in other worlds what's the difference between :
Viewport viewport = new Viewport(context.getLayerViewPanel());
Viewport viewport = context.getLayerViewPanel().getViewport();

As soon as you use new, you create a new object in memory.
So your view port is not the same object as
layerViewPanel().getViewport()

Michaël


--
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Change the color of the selected feature, Memory usage in OpenJump

2013-03-07 Thread Asma ouqalli
Hi Rahkonen Jukka,  ,
yes i get this heap memory error.
ok i'll increase it to 1500M, i have 64bits but i installed the 32bit java.
am running for the moment advanced search operation, later i'll have to add
more operations.
in olny 75 sec, ww great job.
ok i'll take a look at Kosmo code src.

No the yellow border is not enough, i need to fill the feature not only
border.

thanks.

-- 
*Asma OUQALLI*

Élève ingénieur : 3ème  Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel  - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
  Ecole Hassania des Travaux Publics.
   Mobile : +212 672 48 23 15.
   Email : asma.ouqa...@gmail.com
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel