ObjectProfile / Roassal2

Agile Visualization Engine for Pharo and VisualWorks
http://AgileVisualization.com
MIT License
26 stars 20 forks source link

Continous popup can be improved #34

Closed pavel-krivanek closed 5 years ago

pavel-krivanek commented 5 years ago

Issue by bergel Thursday Aug 03, 2017 at 00:27 GMT Originally opened as https://github.com/moosetechnology/Moose/issues/1254


We need something like:

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: (RTContinuousPopup ...)

g
pavel-krivanek commented 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

captura de pantalla 2017-08-18 a la s 20 06 59
pavel-krivanek commented 5 years ago

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...

bergel commented 5 years ago

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