[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.gef] Re: Wiggly line

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);