Hi Peter,
I have just added TRLineShape>>includesPoint:delta:
This is what you need I guess.
I have also increased to 5 the default amount of pixels for the epsilon. Let me know.
Just to let you know, you can use “@RTHighlightable” on edges. Do you know this?
You can play with this:
=-=-=-==-=-=-==-=-=-==-=-=-=
b := RTGraphBuilder new.
b nodes circle size: 20; color: Color gray.
b edges
connectTo: #dependentClasses;
width: 3;
highlightable;
useInLayout.
b layout
forceCharge: -80.
b addAll: (RTShape withAllSubclasses).
b build
=-=-=-==-=-=-==-=-=-==-=-=-=
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 7, 2014, at 6:09 PM, Peter Uhnák <i.uhnak(a)gmail.com> wrote:
Hi Alex,
would it be possible to allow specification of epsilon for
TRLineShape>>includesPoint:?
Having it small makes sense if it is processed by machine, but trying to click on it by
hand is hard.
Alternatively I could subclass it in my program but then I would have to change it also
in all RTLabel subclasses. Or is there better way? Changing the epsilon seems most
straightforward to me.
Peter
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev