Closed pavel-krivanek closed 5 years ago
Comment by akevalion
Saturday Aug 19, 2017 at 15:00 GMT
I have added a new class RTContinuousDecorator, you can use it in different ways
g := RTGrapher new.
d1 := RTData new. d1 noDot . d1 connectColor: Color blue. d1 points: #(1 2 4 5 6 10). d1 y: #yourself. g add: d1.
d1 := RTData new. d1 noDot . d1 connectColor: Color red. d1 points: #(1 -3 3 5 9 10). d1 y: #yourself. g add: d1.
g addDecorator: (RTContinuousDecorator new).
g
Comment by bergel
Monday Sep 25, 2017 at 23:51 GMT
Looks great, but the continuous decorator should also give the model, in addition to the y value. For example:
g := RTGrapher new.
d1 := RTData new.
d1 noDot .
d1 connectColor: Color blue.
d1 points: ((RTObject withAllSubclasses sortedAs: #numberOfMethods) last: 50).
d1 y: #numberOfMethods.
g add: d1.
d1 := RTData new.
d1 noDot .
d1 connectColor: Color red.
d1 points: ((TRObject withAllSubclasses sortedAs: #numberOfMethods) last: 50).
d1 y: #numberOfMethods.
g add: d1.
g addDecorator: (RTContinuousDecorator new).
g
I would expect to see the element for which the mouse is pointing to...
Here is an example
data1 := (Collection withAllSubclasses) reverseSortedAs: #numberOfMethods.
data2 := (TRShape withAllSubclasses) reverseSortedAs: #numberOfMethods.
g := RTGrapher new.
d1 := RTData new.
d1 noDot .
d1 connectColor: Color blue.
d1 points: data1.
d1 y: #numberOfMethods.
g add: d1.
d1 := RTData new.
d1 noDot .
d1 connectColor: Color red.
d1 points: data2.
d1 y: #numberOfMethods.
g add: d1.
g addDecorator: (RTContinuousDecorator new).
g
Indeed, the issue can be closed
We need something like: