Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Lollipop decorators on connections in Draw2D
Lollipop decorators on connections in Draw2D [message #247191] Mon, 09 February 2009 12:35 Go to next message
Michael Piefel is currently offline Michael PiefelFriend
Messages: 12
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0065_01C98ABB.35E976E0
Content-Type: text/plain;
format=flowed;
charset="utf-8";
reply-type=original
Content-Transfer-Encoding: 8bit

Hello,

We have a tool to graphically model UML component diagrams, but the source
code begins to stink. I am now evaluating libraries to help us with the
task. I studied the well-known “Display a UML Diagram using Draw2D” article.
The problem is that we need far more sophisticated decorators on our
connections: lollipops and sockets.

The attached picture illustrates the way it is done now. As you can see, the
connection marked with “hand” has lollipop and socket connected, but the
connection actually doesn’t run through. What’s more, we even have
unconnected lollipops (“finger”) and sockets (“arm”). All these are
essential for UML component diagrams. (While the colours and the orientation
are not.)

Can anyone point me to a resource explaining this, or is this just not
possible with Draw2D?

Bye,
Mike

--
Michael Piefel
netCCM GmbH

------=_NextPart_000_0065_01C98ABB.35E976E0
Content-Type: image/png;
name="ports.png"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="ports.png"

iVBORw0KGgoAAAANSUhEUgAAAJMAAAB+CAYAAAAgPyNJAAAAAXNSR0IArs4c 6QAAAAZiS0dEAP8A
/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9kCCQszCAjI +U4AABBnSURBVHja
7Z1vTFvnvcc/BtuYzrmhCTbumjCuQpQYu4q3pcmqstpJKoW7NqRqgDbcSuRN 0pW8GRIqka7AJbwJ
VSS0F3hZuZOSqSE3iTMl0E5QtcGe6LqyVPNdwUDj3csl6eoLbuLuusU5djj3 hf8EkjZAgGDM85GQ
4Phw/Pg5X/+e3/k+v3MehSzLMgLBApAhukAgxCQQYhIIMQkEQkyCh4ey8avG BTmQfbVd9OYyYKHO
t4hMgsWNTD9f/fN5H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wW8745 4TMtA2R5HLfDgTsw
NWrZSLVJAIUsy7I4XYLldTUnEGISCISYBEJMguXL/wPTt8JWLse0YgAAAABJ RU5ErkJggg==

------=_NextPart_000_0065_01C98ABB.35E976E0--
Re: Lollipop decorators on connections in Draw2D [message #247227 is a reply to message #247191] Thu, 12 February 2009 01:46 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Michael

Yes you can do this with Draw2d, look at PolygonDecoration support on
connections.

If you google the term you should fine some pointers.

Cheers...
Anthony


"Michael Piefel" <m.piefel@netccm.com> wrote in message
news:gmp7tn$umj$1@build.eclipse.org...
> Hello,
>
> We have a tool to graphically model UML component diagrams, but the source
> code begins to stink. I am now evaluating libraries to help us with the
> task. I studied the well-known "Display a UML Diagram using Draw2D"
> article.
> The problem is that we need far more sophisticated decorators on our
> connections: lollipops and sockets.
>
> The attached picture illustrates the way it is done now. As you can see,
> the
> connection marked with "hand" has lollipop and socket connected, but the
> connection actually doesn't run through. What's more, we even have
> unconnected lollipops ("finger") and sockets ("arm"). All these are
> essential for UML component diagrams. (While the colours and the
> orientation
> are not.)
>
> Can anyone point me to a resource explaining this, or is this just not
> possible with Draw2D?
>
> Bye,
> Mike
>
> --
> Michael Piefel
> netCCM GmbH
>
Re: Lollipop decorators on connections in Draw2D [message #247269 is a reply to message #247227] Fri, 13 February 2009 12:10 Go to previous message
Michael Piefel is currently offline Michael PiefelFriend
Messages: 12
Registered: July 2009
Junior Member
"Anthony Hunter" <anthonyh@ca.ibm.com> schrieb im Newsbeitrag
news:gmvv20$r8q$1@build.eclipse.org...
> Hi Michael
>
> Yes you can do this with Draw2d, look at PolygonDecoration support on
> connections.
>
> If you google the term you should fine some pointers.

Thank you for your answer, but my Google searches turn up nothing. If you
meant ie. http://www.eclipse.org/articles/Article-GEF-Draw2d/GEF-Draw2 d.html
or other tutorials, they do not get to the finer points.

My problem is twofold:
a) The decoration is not a polygon (not even one with infinite points). It
is two lines (a ball and a socket) which do not even touch.
b) The decorators should be even there for unconnected nodes, so they are
probably not even a Decoration at all, since these apply to
PolyLineConnections only.

Is there any more elaborate documentation on Draw2D? Even a book would be
acceptable :-)

Bye,
Mike

--
Michael Piefel
netCCM GmbH
Previous Topic:[Announce] GEF 3.4.2RC2 is available
Next Topic:[Zest] GraphConnection
Goto Forum:
  


Current Time: Fri Apr 19 06:26:51 GMT 2024

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

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

Back to the top