Skip to main content



      Home
Home » Eclipse Projects » GEF » Customize the position of dragger for bendpoints
Customize the position of dragger for bendpoints [message #18264] Wed, 28 August 2002 08:47 Go to next message
Eclipse UserFriend
Originally posted by: jounial.hotmail.com

Currently the possible drag point to create new bendpoint for a
PolylineConnection is positioned at the middle of two bendpoints.

For the tool I am building now, I need to support draggable curve, so I
just implement an subclass of PolylineConnection and draw the line by
myself. The problem here is how to customize the drag point for creating
new bendpoints, to put one dragger on the middle of the curve is
acceptable, an ideal solution is to allow user drag at any point on the
curve.
Re: Customize the position of dragger for bendpoints [message #18298 is a reply to message #18264] Wed, 28 August 2002 09:05 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

All EditParts are asked for a DragTracker when clicked. Just have the
ConnectionEditPart return the drag tracker on the curve. You can also set
the Cursor on the entire PolylineConnection figure, if you want some type of
cursor change. Maybe only change the cursor when the conneciton is
selected.

Note that your drag tracker will have to perform the same function as the
current drag tracker being returned. That is, it must cause the connection
to be selected when the user clicks on it. Maybe you could extend
SelectEditPartTracker.

"Jounial" <jounial@hotmail.com> wrote in message
news:akigo8$l2l$1@rogue.oti.com...
> Currently the possible drag point to create new bendpoint for a
> PolylineConnection is positioned at the middle of two bendpoints.
>
> For the tool I am building now, I need to support draggable curve, so I
> just implement an subclass of PolylineConnection and draw the line by
> myself. The problem here is how to customize the drag point for creating
> new bendpoints, to put one dragger on the middle of the curve is
> acceptable, an ideal solution is to allow user drag at any point on the
> curve.
>
>
>
Previous Topic:Sticky Selection of a tool
Next Topic:New lines in labels
Goto Forum:
  


Current Time: Sat May 31 07:57:08 EDT 2025

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

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

Back to the top