Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Transparent SVG file as a figure
Transparent SVG file as a figure [message #62310] Fri, 13 October 2006 13:00 Go to next message
Eclipse UserFriend
Hi. I am trying to get SVG files containing polylines (with a transparent
background) to work as figures for an EditPart.

First, is there a generative way to get the SVG file working as a figure?
I selected "custom figure" and then hand coded a node figure in the edit
part. This works, but I have an ugly white box surrounding the SVG image.

If there is not a generative way to do this, is there somewhere I can find
sample code for an EditPart with a transparent SVG? Or could someone give
me some common pitfalls or post a snippet?

Many thanks,

Harley.
Re: Transparent SVG file as a figure [message #63507 is a reply to message #62310] Mon, 16 October 2006 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Perhaps, EmptyBoxFigure from TaiPan sample could be of help?


Artem

"Harley" <barleyguy-gmf@sisna.com> wrote in message
news:adc85c1d7c179a69fed5b09f3bb56440$1@www.eclipse.org...
> Hi. I am trying to get SVG files containing polylines (with a transparent
> background) to work as figures for an EditPart.
>
> First, is there a generative way to get the SVG file working as a figure?
> I selected "custom figure" and then hand coded a node figure in the edit
> part. This works, but I have an ugly white box surrounding the SVG image.
>
> If there is not a generative way to do this, is there somewhere I can find
> sample code for an EditPart with a transparent SVG? Or could someone give
> me some common pitfalls or post a snippet?
>
> Many thanks,
>
> Harley.
>
>
Re: Transparent SVG file as a figure [message #63644 is a reply to message #63507] Mon, 16 October 2006 16:00 Go to previous messageGo to next message
Eclipse UserFriend
I tried this, but unfortunately it's not transparent. If you remove the
brown rectangle from the Box, and place two of them overlapping, you will
notice that there is a white rectangle surrounding the box. If this was
placed on a colored background, the white box would obscure the background.

It's a good starting point though. Any suggestions?

Thanks,

Harley.
Re: Transparent SVG file as a figure [message #63932 is a reply to message #63644] Tue, 17 October 2006 07:44 Go to previous message
Eclipse UserFriend
Check https://bugs.eclipse.org/bugs/show_bug.cgi?id=131634, reopen if the
problem is similar or file a new one.

Artem

"Harley" <barleyguy-gmf@sisna.com> wrote in message
news:cf828eedeb805ef736bc462e6acadde1$1@www.eclipse.org...
>I tried this, but unfortunately it's not transparent. If you remove the
>brown rectangle from the Box, and place two of them overlapping, you will
>notice that there is a white rectangle surrounding the box. If this was
>placed on a colored background, the white box would obscure the background.
>
> It's a good starting point though. Any suggestions?
>
> Thanks,
>
> Harley.
>
Previous Topic:Associate an object to a connection as it's attribute
Next Topic:SWT property editor
Goto Forum:
  


Current Time: Thu May 08 17:39:25 EDT 2025

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

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

Back to the top