|
|
|
|
|
|
|
Re: Enlarge click area for connections [message #754404 is a reply to message #753961] |
Wed, 02 November 2011 12:58 |
Christian B Messages: 68 Registered: August 2011 |
Member |
|
|
thanks, i will try this.
But i found one other very interesting code snipped in org.eclipse.graphiti.ui.internal.figures.GFPolyline:
/**
* Sets the selection tolerance. This is the minimum line-width, which is
* still considered to be a selection of the polyline, independent from the
* real line-width. For a small line-width this makes it easier to select
* the polyline.
*
* @param minimumSelectionLineWidth
* The new minimum selection line-width to set.
*/
public void setMinimumSelectionLineWidth(int minimumSelectionLineWidth) {
this.minimumSelectionLineWidth = minimumSelectionLineWidth;
}
This looks exactly like what i am looking for! so now i have to overwrite or extend some internal class to use this method!
What would be the appropiate way to use this method?
Which internally class should i extend or overwrite? (i think of org.eclipse.graphiti.ui.internal.figures.GFPolylineConnection)
EDIT:
if the minimumSelectionWidth works, it should definitly be settable by the graphiti user
EDIT2:
org.eclipse.graphiti.ui.internal.figures.GFPolyline.minimumSelectionWidth solves my issue perfectly! But it is only changable by changing internal code...
[Updated on: Wed, 02 November 2011 15:25] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06011 seconds