Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 849 by benjamin...(a)gmail.com: Roassal rubber-banding
http://code.google.com/p/moose-technology/issues/detail?id=849
As a new feature for Roassal, I would like to be able to interactively drag
what I term a rubberband (you may have a better one?) from one element to
another to create and edge between them.
I had previously implemented this on original Mondrian but I think only in
my image. I don't think it made it to the Mondrian trunk.
As a starting point of discussion I have attached an extracted changeset
from my image - mostly so that it can be browsed for inspiration in a plain
text editor.
One key part of the Mondrian implementation was using MOCanvas>>drawOn: to
draw the rubberband every cycle as well as being outside of the main
graph. However there is no corresponding #drawOn: on any of the
RO-canvases.
The changeset shows the use by the application of two entry points
#dropRubberBandFrom and #dropRubberBandOn:. Rubber bands can be dragged
from EpcimTerminal elements to EpcimConnectivityNode elements. Method
#addSubViewTo: was my own application-way of splitting up graph creation to
the elements of the graph. I've done this a bit different for updating my
application from Mondrian to Roassal and the reference implementation for
this should preferably use "GLMRossalInteractive"
I have manually re-ordered the changeset so that the order that methods are
used go generally from top to bottom. However the best starting point would
be to scroll down to look at MOCanvas>>drawOn: and MOCanvas>>rubberBand:,
then back up to look at the EpCim* classes,
the the two MOAnnouncer methods.