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