Skip to main content



      Home
Home » Eclipse Projects » GEF » Rendering AWT graphics in a Figure
Rendering AWT graphics in a Figure [message #165786] Wed, 26 January 2005 18:57 Go to next message
Eclipse UserFriend
Originally posted by: rgould.refractions.net

Is it at all possible to render AWT graphics in a Figure?

I have several items that need to be represented as figures. Each of
these already has its own draw(Graphics2D) method. I am hoping to re-use
this method to render the object in a Figure.

I thought it might be possible to create an SWT Image from a Graphics2D,
but I am not sure how to do that either.

Thanks,

Richard
Re: Rendering AWT graphics in a Figure [message #165921 is a reply to message #165786] Thu, 27 January 2005 08:18 Go to previous message
Eclipse UserFriend
Richard Gould wrote:

> Is it at all possible to render AWT graphics in a Figure?
>
> I have several items that need to be represented as figures. Each of
> these already has its own draw(Graphics2D) method. I am hoping to re-use
> this method to render the object in a Figure.
>
> I thought it might be possible to create an SWT Image from a Graphics2D,
> but I am not sure how to do that either.
>
> Thanks,
>
> Richard

Look at this article:
http://www-106.ibm.com/developerworks/library/j-2dswt/?ca=dn t-522

Yannick
Previous Topic:Routing Requests _ help needed
Next Topic:Fixed areas when horizontally scroll
Goto Forum:
  


Current Time: Mon May 12 03:01:25 EDT 2025

Powered by FUDForum. Page generated in 0.02921 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top