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<mailto: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<mailto: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

Reply via email to