Hi Mathieu,

On 25 January 2011 13:18, Mathieu Baudier <[email protected]> wrote:
> The Geotools Swing components are pretty straightforward to embed in SWT:
>
> embedded = new Composite(parent, SWT.EMBEDDED | SWT.NO_BACKGROUND);
> Frame frame = SWT_AWT.new_Frame(embedded);
> mapPane = new JMapPane(new StreamingRenderer(), mapContext);
> frame.add(mapPane);
>
> On a side note: I have done some low-level rendering on SWT (not for
> GIS) some time ago and I was a bit disappointed by the performance.
> Paradoxically, Swing seems to be closer from the operating system...

I suspect your performance problems may have been because of the
SWT_AWT bridge itself.

Using the bridge would probably be enough to get myself up and
running, but I really aspire to native SWT support.  There's not a lot
of code in the Swing wrapper, I don't suppose there would be very much
in the SWT wrapper (acknowledging the wrapper would have many of the
optimisations present in the uDig sources).

thanks for the tips,
Ian

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

Reply via email to