Simple line drawing EditPart [message #206358] |
Thu, 29 December 2005 08:18  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03133 seconds