Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Using SVG as Nodes
Using SVG as Nodes [message #199937] Sun, 03 August 2008 18:41 Go to next message
Eclipse UserFriend
Originally posted by: rolfes.daniel.web.de

Hi,

1)i've defined some custom figures with SVG images for my editor. Could
someone explain, what could be the advantages/disadvantages using SVG
instead of the Draw2D Polygon, Rectangle etc.?

2) Considering I've created these SVG images for my Nodes, is it
possible to use them for the palette and the popup menu?
I've tried to set the Path to the SVG-file in the gmftool but i get an
SWT error, because the format is not known.

3) When i create the FIRST diagram and try to add a new element with an
SVG image for the FIRST time, it takes 1-2 seconds before it is
displayed. Shortly before being properly displayed there is a red cross.
Is it possible to solve this?


Thanks,
Daniel
Re: Using SVG as Nodes [message #200089 is a reply to message #199937] Mon, 04 August 2008 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Hello!

1)

Pros:
- SVG is a feature-rich format; check filters for example
- It's possible to edit SVG in convenient editors (Inkscape, GIMP)
- You may use CSS to provide common look and feel
- SVG figures may be used in other parts of your project - like
documentation

Cons:
- SVG will require more computer resources to render
- GMF provides rather simple support for SVG but we are working on this

Summary: If your figures are simple shapes (you design something like
class diagram) then SVG currently is overkill; if you have a diagram
spec in SVG or need special visual effects then you could consider using
SVG.

2) Could you submit a request to bugzilla? We could expose
RenderedImageDescriptor I guess.

3) This happens because SVG document is being loaded asynchronously;
hopefully this could be made an option.

D. Rolfes wrote:
> Hi,
>
> 1)i've defined some custom figures with SVG images for my editor. Could
> someone explain, what could be the advantages/disadvantages using SVG
> instead of the Draw2D Polygon, Rectangle etc.?
>
> 2) Considering I've created these SVG images for my Nodes, is it
> possible to use them for the palette and the popup menu?
> I've tried to set the Path to the SVG-file in the gmftool but i get an
> SWT error, because the format is not known.
>
> 3) When i create the FIRST diagram and try to add a new element with an
> SVG image for the FIRST time, it takes 1-2 seconds before it is
> displayed. Shortly before being properly displayed there is a red cross.
> Is it possible to solve this?
>
>
> Thanks,
> Daniel
Re: Using SVG as Nodes [message #200119 is a reply to message #200089] Mon, 04 August 2008 13:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rolfes.daniel.web.de

Hi,

thanks for your answer!

"2) Could you submit a request to bugzilla? We could expose
RenderedImageDescriptor I guess."

Hmm, not sure if I know how to do this. I'll try.


Thanks,
Daniel


Dmitry Stadnik schrieb:
> Hello!
>
> 1)
>
> Pros:
> - SVG is a feature-rich format; check filters for example
> - It's possible to edit SVG in convenient editors (Inkscape, GIMP)
> - You may use CSS to provide common look and feel
> - SVG figures may be used in other parts of your project - like
> documentation
>
> Cons:
> - SVG will require more computer resources to render
> - GMF provides rather simple support for SVG but we are working on this
>
> Summary: If your figures are simple shapes (you design something like
> class diagram) then SVG currently is overkill; if you have a diagram
> spec in SVG or need special visual effects then you could consider using
> SVG.
>
> 2) Could you submit a request to bugzilla? We could expose
> RenderedImageDescriptor I guess.
>
> 3) This happens because SVG document is being loaded asynchronously;
> hopefully this could be made an option.
>
> D. Rolfes wrote:
>> Hi,
>>
>> 1)i've defined some custom figures with SVG images for my editor.
>> Could someone explain, what could be the advantages/disadvantages
>> using SVG instead of the Draw2D Polygon, Rectangle etc.?
>>
>> 2) Considering I've created these SVG images for my Nodes, is it
>> possible to use them for the palette and the popup menu?
>> I've tried to set the Path to the SVG-file in the gmftool but i get an
>> SWT error, because the format is not known.
>>
>> 3) When i create the FIRST diagram and try to add a new element with
>> an SVG image for the FIRST time, it takes 1-2 seconds before it is
>> displayed. Shortly before being properly displayed there is a red
>> cross. Is it possible to solve this?
>>
>>
>> Thanks,
>> Daniel
Re: Using SVG as Nodes [message #200719 is a reply to message #200119] Wed, 06 August 2008 10:03 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

https://bugs.eclipse.org/bugs/

D. Rolfes wrote:
> Hi,
>
> thanks for your answer!
>
> "2) Could you submit a request to bugzilla? We could expose
> RenderedImageDescriptor I guess."
>
> Hmm, not sure if I know how to do this. I'll try.
>
>
> Thanks,
> Daniel
>
>
> Dmitry Stadnik schrieb:
>> Hello!
>>
>> 1)
>>
>> Pros:
>> - SVG is a feature-rich format; check filters for example
>> - It's possible to edit SVG in convenient editors (Inkscape, GIMP)
>> - You may use CSS to provide common look and feel
>> - SVG figures may be used in other parts of your project - like
>> documentation
>>
>> Cons:
>> - SVG will require more computer resources to render
>> - GMF provides rather simple support for SVG but we are working on this
>>
>> Summary: If your figures are simple shapes (you design something like
>> class diagram) then SVG currently is overkill; if you have a diagram
>> spec in SVG or need special visual effects then you could consider
>> using SVG.
>>
>> 2) Could you submit a request to bugzilla? We could expose
>> RenderedImageDescriptor I guess.
>>
>> 3) This happens because SVG document is being loaded asynchronously;
>> hopefully this could be made an option.
>>
>> D. Rolfes wrote:
>>> Hi,
>>>
>>> 1)i've defined some custom figures with SVG images for my editor.
>>> Could someone explain, what could be the advantages/disadvantages
>>> using SVG instead of the Draw2D Polygon, Rectangle etc.?
>>>
>>> 2) Considering I've created these SVG images for my Nodes, is it
>>> possible to use them for the palette and the popup menu?
>>> I've tried to set the Path to the SVG-file in the gmftool but i get
>>> an SWT error, because the format is not known.
>>>
>>> 3) When i create the FIRST diagram and try to add a new element with
>>> an SVG image for the FIRST time, it takes 1-2 seconds before it is
>>> displayed. Shortly before being properly displayed there is a red
>>> cross. Is it possible to solve this?
>>>
>>>
>>> Thanks,
>>> Daniel
Previous Topic:connection-editing via properties is incorrect
Next Topic:displaying a dialogue when adding a node
Goto Forum:
  


Current Time: Sat Apr 10 14:31:02 GMT 2021

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

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

Back to the top