Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Newbie in GEF - creating new figure: server, router, network interface, etc
Newbie in GEF - creating new figure: server, router, network interface, etc [message #232152] Sun, 25 March 2007 14:03 Go to next message
Eclipse UserFriend
Originally posted by: lucchetto.michele.tiscali.it

Hello guys.
I would like to implements a network editor using GEF/Draw2d.

One problem is: how can I design the main symbols
of the editor such a server, router, and so on?

Symbols don't have to be too much beautiful,
but they must have possibility to have more than one
connection (that is they can have one or more network card interface).

Suggestions?

Thanks in advance

ML
Re: Newbie in GEF - creating new figure: server, router, network interface, etc [message #232176 is a reply to message #232152] Mon, 26 March 2007 08:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jakub.jurkiewicz.gmail.com

Hi,

I believe that you have to create new Figures (you extend the
org.eclipse.draw2d.Figure class) and later in the appropriate EditPart
in getFigure() method (from AbstractGraphicalEditPart) you have to
return an instance of this new figure.


Hope this helps,
Jakub Jurkiewicz

exquisitus wrote:
> Hello guys.
> I would like to implements a network editor using GEF/Draw2d.
>
> One problem is: how can I design the main symbols
> of the editor such a server, router, and so on?
>
> Symbols don't have to be too much beautiful,
> but they must have possibility to have more than one
> connection (that is they can have one or more network card interface).
>
> Suggestions?
>
> Thanks in advance
>
> ML
Re: Newbie in GEF - creating new figure: server, router, network interface, etc [message #232184 is a reply to message #232176] Mon, 26 March 2007 08:44 Go to previous messageGo to next message
Andreas Schosser is currently offline Andreas SchosserFriend
Messages: 30
Registered: July 2009
Member
Hi,

I guess exquisitus' question was about how to paint (define painted)
complex figures forming a graphical node in the GEF diagram.
Though this topic seems to be closer to Draw2D than to GEF, I would
suggest using a drawing tool that is able to convert to a readable
vector graphics format (e.g. SVG) and then transfer the vector
description into plain Draw2D figures.
Are there any built-in solutions closer to GEF available? Does anybody
know or can share her or his experience about this?
I would also be interested.

Kinde regards,

Andreas

Jakub Jurkiewicz wrote:
> Hi,
>
> I believe that you have to create new Figures (you extend the
> org.eclipse.draw2d.Figure class) and later in the appropriate EditPart
> in getFigure() method (from AbstractGraphicalEditPart) you have to
> return an instance of this new figure.
>
>
> Hope this helps,
> Jakub Jurkiewicz
>
> exquisitus wrote:
>> Hello guys.
>> I would like to implements a network editor using GEF/Draw2d.
>>
>> One problem is: how can I design the main symbols
>> of the editor such a server, router, and so on?
>>
>> Symbols don't have to be too much beautiful,
>> but they must have possibility to have more than one
>> connection (that is they can have one or more network card interface).
>>
>> Suggestions?
>>
>> Thanks in advance
>>
>> ML
Re: Newbie in GEF - creating new figure: server, router, network interface, etc [message #232216 is a reply to message #232184] Mon, 26 March 2007 16:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lucchetto.michele.tiscali.it

First of all, thanks to all contributors.
Adreas has caught the problem.
But I didn't know that there is the possibility to use
converted images into Draw2D figure.

How is it possible?
You say "...then transfer the vector description into plain Draw2D figures."
What does it mean?

Best regards,
ML
Re: Newbie in GEF - creating new figure: server, router, network interface, etc [message #232248 is a reply to message #232216] Tue, 27 March 2007 06:47 Go to previous message
Andreas Schosser is currently offline Andreas SchosserFriend
Messages: 30
Registered: July 2009
Member
Hi,

SVG (Standard Vector Graphics) is a XML-based graphics format that
allows to store shapes by their mathematical description. If you view
the plain text content of a XML file, a circle is a circle, an ellipse
is an ellipse, a rectangle is a rectangle and so on.
For me, mapping the mathematical descriptions to the corresponding
Draw2D figures (respectively to the adequate Draw2D paint methods) seems
to be straight forward.
Is there anybody who has tried this already? Can anybody contribute some
piece of code? (=> Open enhancement "Import from SVG"?)

Kind regards,

Andreas

exquisitus wrote:
> First of all, thanks to all contributors.
> Adreas has caught the problem.
> But I didn't know that there is the possibility to use
> converted images into Draw2D figure.
>
> How is it possible?
> You say "...then transfer the vector description into plain Draw2D
> figures."
> What does it mean?
>
> Best regards,
> ML
Previous Topic:Drag child of figure
Next Topic:Undoable Operation Support
Goto Forum:
  


Current Time: Sun Oct 17 06:49:48 GMT 2021

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

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

Back to the top