Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Wiggly line
Wiggly line [message #249713] Thu, 23 July 2009 15:24 Go to next message
Eclipse UserFriend
Originally posted by: c.krause.cwi.nl

This is a multi-part message in MIME format.
--------------000400020200000308090004
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I would like to implement a polyline that looks like the image in the
attachment. I know how to add a decoration in the middle of the
polyline, but this is probably not the best way to do it. Does anyone
know how this can be done nicer?

Cheers,
Christian

--------------000400020200000308090004
Content-Type: image/png;
name="wiggly.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="wiggly.png"

iVBORw0KGgoAAAANSUhEUgAAAL8AAAA/CAYAAACxWhneAAAAAXNSR0IArs4c 6QAAAAZiS0dE
AP8A/wD/oL2nkwAAAAlwSFlzAAAPEgAADxIBIZvyMwAAAAd0SU1FB9kHFw8V EklbhBAAAAAZ
dEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAABsUlEQVR42u3c 0Y7CIBBG4WXj
+78yXmmMtmmrzBTod642WTdbmDP0B6ul1lr/gAvybwpAfoD8APkB8gPkB8gP kB8gP0B+gPwA
+QHyA+QHyA+QHyA/QH6A/AD5gabcTEEMpZTnz74jgPwIaJrRm+zM6xd70GUj kH+SImYXVQOQ
f/qmmaHJaq0fcaeUkjIW8k96Sx+xCbLnjPydbOCOFnrGZlprgKixkn8yaUZv iqUYFDUu8ncY
fWaSuecYdGtZtCsXZm2eaq2HNq5Hz/avFpMe42jxnoCVP7lBov6PuwX5u4ov e2JMhqia4YfY
49mUbYlaCPY6z69xqZTy/N2vjwOMVsv3eW15/Vb+Riv4kQJFrcQzRZ+lI87W jUv+pDixdXph
o7t9cCDzX2QjG3EdI0SeLPHJH3B73luoPSvyNzFm5OizFHMiG5b8iav/2t9l rMg9r/oZ+Z78
k8g0++lb1vjIn1y099dEFHrk5si8dvJ3XqgWzdJ7MzyyvY8xAkn4APsJq//V N7jkB5FPRuwB
+QHyA+QHyA+QHyA/QH6A/AD5AfID5AfID5AfID9AfoD8APmBaO7a2NN0BvUm jAAAAABJRU5E
rkJggg==
--------------000400020200000308090004--
Re: Wiggly line [message #249718 is a reply to message #249713] Thu, 23 July 2009 15:37 Go to previous messageGo to next message
Pascal G is currently offline Pascal GFriend
Messages: 157
Registered: July 2009
Senior Member
Christian Krause wrote:
> Hi,
>
> I would like to implement a polyline that looks like the image in the
> attachment. I know how to add a decoration in the middle of the
> polyline, but this is probably not the best way to do it. Does anyone
> know how this can be done nicer?
>
> Cheers,
> Christian
>
> ------------------------------------------------------------ ------------
>

My guess would be using the setPoints method on polyline.

PointList points = new PointList();
PolylineConnection line = new PolylineConnection();
// Compute your points and add them to the list.
line.setPoints(points);

--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*
Re: Wiggly line [message #249722 is a reply to message #249718] Fri, 24 July 2009 08:13 Go to previous message
Eclipse UserFriend
Originally posted by: c.krause.cwi.nl

Hi Pascal,
thanks, I'll try that.

Cheers,
Christian

Pascal Gelinas wrote:
> Christian Krause wrote:
>> Hi,
>>
>> I would like to implement a polyline that looks like the image in the
>> attachment. I know how to add a decoration in the middle of the
>> polyline, but this is probably not the best way to do it. Does anyone
>> know how this can be done nicer?
>>
>> Cheers,
>> Christian
>>
>> ------------------------------------------------------------ ------------
>>
>
> My guess would be using the setPoints method on polyline.
>
> PointList points = new PointList();
> PolylineConnection line = new PolylineConnection();
> // Compute your points and add them to the list.
> line.setPoints(points);
>
Previous Topic:How to create Hyperlink label or Image in GEF(Draw @d)
Next Topic:Figure truncation when printing on Mac
Goto Forum:
  


Current Time: Thu Sep 26 06:41:45 GMT 2024

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

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

Back to the top