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