Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to create a line editpart?
how to create a line editpart? [message #159015] Mon, 22 November 2004 10:16 Go to next message
Eclipse UserFriend
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 23:43 Go to previous message
Eclipse UserFriend
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
Previous Topic:Added new figures to the diagram.
Next Topic:Source code of Randy's GEF tutorial
Goto Forum:
  


Current Time: Sat Sep 14 12:07:07 GMT 2024

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

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

Back to the top