how to create a line editpart? [message #159015] |
Mon, 22 November 2004 05:16  |
Eclipse User |
|
|
|
Originally posted by: fabien.mairesse.barco.com
Hello,
I would like to edit lines. So I made an editpart that inherits from
AbstractGraphicalEditPart and whose figure is a Polyline. The problem is
that my line has "bounds", i.e when it is selected, it appears surrounded
by a rectangle with handles. I would like a line that behaves like the
ConnectionEditPart but that don't connect anything.
Could somebody give me a start point?
Thanks.
Fabien Mairesse
|
|
|
Re: how to create a line editpart? [message #159168 is a reply to message #159015] |
Mon, 22 November 2004 18:43  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Fabien Mairesse wrote:
> Hello,
>
> I would like to edit lines. So I made an editpart that inherits from
> AbstractGraphicalEditPart and whose figure is a Polyline. The problem is
> that my line has "bounds", i.e when it is selected, it appears
> surrounded by a rectangle with handles. I would like a line that behaves
> like the ConnectionEditPart but that don't connect anything.
>
> Could somebody give me a start point?
> Thanks.
>
> Fabien Mairesse
>
I got a class i can mail you, what a pain it was to create, and im not
entirely sure i got it right, but it works. its not just 1 class
though, its a set of classes, lol.
LineEditPart
LineEndpointMoveTracker
LineHandleLocator
LineSizeableEditPolicy
ResizeableLineHandleKit
likely more, what a mess :P probably wont work as i mail them to you
cause of other dependencies, but if you know GEF, you should be able to
work it out as I followed the GEF style.
If anyone knows an easier way, im all ears.
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber."
GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
|
|
|
Powered by
FUDForum. Page generated in 0.02647 seconds