Polyline node [message #174635] |
Wed, 27 February 2008 16:44 |
Eclipse User |
|
|
|
Originally posted by: gmf.klmusic.no
Hi,
I need draggable polyline nodes (not connections). I've been struggling
for some time now and I haven't found an easy way to do it. But I've
decided that a connection-with-bendpoints node would be great too. So my
question is how? I understand there'll be some manual coding involved, but
I have no idea what would be the best .gmfgraph settings to start from:
I'll have a Node LineNode that points to a Figure Descriptor LineFigure. I
would think that this LineFigure only needs a Polyline child, but I can't
figure out what methods to override. Also the node needs to be movable,
but you can't drag a line. Am I right?
If this is right I'll have to build the LineFigure using a transparent
rectangle that contains a polyline child. I can move the whole node using
the rectangle, and the bounds of the rectangle will have to be
recalculated when I move the polyline bendpoints.
Could someone please point me in the right direction? Are there any other
children my figure descriptor would need?
Best regards,
Knut
|
|
|
Powered by
FUDForum. Page generated in 0.02751 seconds