Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Polyline node
Polyline node [message #174635] Wed, 27 February 2008 16:44
Eclipse UserFriend
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
Previous Topic:Disable node creation through mouse hover
Next Topic:strange problem
Goto Forum:
  


Current Time: Fri Apr 26 03:06:28 GMT 2024

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

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

Back to the top