Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » rotate, translate
rotate, translate [message #218282] Thu, 22 June 2006 00:11 Go to next message
Victor Llorens is currently offline Victor Llorens
Messages: 60
Registered: July 2009
Member
Hello,

I'm converting an AWT graphical environtment to an Eclipse RCP using SWT.

In only two or three methods of the awt code, appears the
Graphics2D.translate and Graphics2D.rotate.

My question is if there is some way of doing that without having to
include the gef jar. If not posible, I have no choice, I will have to use
it.

The less jars has to include my RCP the best.

Thanks.
Re: rotate, translate [message #218396 is a reply to message #218282] Fri, 23 June 2006 20:41 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. Shaw
Messages: 128
Registered: July 2009
Senior Member
The SWT GC supports a transformation matrix. The matrix can represent a
rotation value and translation.

i.e. GC#setTransform(org.eclipse.swt.graphics.Transform transform)

-Steve

"Victor Llorens" <victor.llorens@gmail.com> wrote in message
news:9a0a000e6906fcc9aa12a940de4fc5ad$1@www.eclipse.org...
> Hello,
>
> I'm converting an AWT graphical environtment to an Eclipse RCP using SWT.
>
> In only two or three methods of the awt code, appears the
> Graphics2D.translate and Graphics2D.rotate.
>
> My question is if there is some way of doing that without having to
> include the gef jar. If not posible, I have no choice, I will have to use
> it.
>
> The less jars has to include my RCP the best.
>
> Thanks.
>
Re: rotate, translate [message #218452 is a reply to message #218396] Sun, 25 June 2006 05:22 Go to previous message
Victor Llorens is currently offline Victor Llorens
Messages: 60
Registered: July 2009
Member
it seems ok, I had no idea about how do that without draw2d.Now I have
been able to google something. But when trying to do things with
Transform: I get the folowing error:

Unhandled event loop exception
Reason:
Unable to load graphics library [Cairo is required]
(java.lang.UnsatisfiedLinkError:
/home/victor/workspace/.metadata/.plugins/org.eclipse.pde.co re/Eclipse
Application/org.eclipse.osgi/bundles/18/1/.cp/libswt-cairo-g tk-3139.so:
libcairo.so.1: not found...

I'm using linux and eclipse 3.1.2 M2

Thanks in advance...
Previous Topic:Testing GEF components using Abbot GEF
Next Topic:Implement tree in gef
Goto Forum:
  


Current Time: Sat Oct 25 19:08:30 GMT 2014

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

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