Hi Mathieu, I have also done something similar. I gave a first try to SWT but not only performance was lower, also SWT drawing has several limitations (in the sense of drawing functions) over java2d, which made it impossible to work with it for maps productions.
This also was done a couple of years ago, so some things are shady right now. If I recall correctly we ended up using java2d and in the last moment transform it into SWT image and render that. Was working quite ok inside a lightweight rcp application. Cheers, Andrea On Wed, Jan 26, 2011 at 10:41 AM, Mathieu Baudier <[email protected]> wrote: >> I suspect your performance problems may have been because of the >> SWT_AWT bridge itself. > > Sorry I was not clear: the AWT bridge with GeoTools is working just fine. > > I had performance disappointments (which is different from "problems") > when I did pure low-level SWT rendering (nothing to do with the AWT > bridge nor with GIS). > This was like four years ago, so it may have improved, but I remember > stuff like depth conversions being costly, and looking at the SWT > code, being not performed very efficiently. > > I was thinking at the time that SWT would be faster because it is "native". > But on the graphics / rendering side I'm not sure it they really took > advantage of it (I'm under the impression that rather less than > Swing). > Recently I was considering how to embed native GIS rendering in Java > programs. QGIS would be a candidate since it is pretty easy to isolate > a map pane in C++, but it seems really tough to integrate it in Java. > > These are just some thoughts that may be helpful for somebody trying > to develop such components in SWT. I'd be very interested in such > components as well! > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
