Customize the position of dragger for bendpoints [message #18264] |
Wed, 28 August 2002 08:47  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07659 seconds