rotate, translate [message #218282] |
Thu, 22 June 2006 00:11  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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...
|
|
|
Powered by
FUDForum. Page generated in 0.26218 seconds