Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Simple line drawing EditPart
Simple line drawing EditPart [message #206358] Thu, 29 December 2005 08:18 Go to next message
Eclipse UserFriend
Originally posted by: lgardner.tycoint.com

I am trying to extend the "Shapes" sample application by a simple
"line"-drawing tool and that's working out to be a lot lot more
complicated than I thought. None of the examples I can find provide "line"
tools (just "connectors", which is not the same; I just want to draw a
line, not connect anything). Does anyone know of a some sample-code on
drawing non-rectangular shapes like e.g. lines.

thx,
Lewis
Re: Simple line drawing EditPart [message #206376 is a reply to message #206358] Thu, 29 December 2005 16:20 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
As far as I know GEF is designed to handle edges between nodes.
So you could create a minimal invisible node at both ends of your edge.
You might also be able to write a special anchor that doesn't need a node.

"Lewis Gardner" <lgardner@tycoint.com> wrote in message
news:8176f65ad6c587c2acda49023f9d9b22$1@www.eclipse.org...
>I am trying to extend the "Shapes" sample application by a simple
>"line"-drawing tool and that's working out to be a lot lot more complicated
>than I thought. None of the examples I can find provide "line" tools (just
>"connectors", which is not the same; I just want to draw a line, not
>connect anything). Does anyone know of a some sample-code on drawing
>non-rectangular shapes like e.g. lines.
>
> thx,
> Lewis
>
Re: Simple line drawing EditPart [message #206470 is a reply to message #206376] Mon, 02 January 2006 10:19 Go to previous message
Eclipse UserFriend
Originally posted by: linpay2000.hotmail.com

Could you give me a sample of handle edges!
Previous Topic:auto arrange figures on canvas
Next Topic:Connections as Nodes
Goto Forum:
  


Current Time: Wed Jan 22 09:20:29 GMT 2025

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

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

Back to the top