That’s great, thanks!
But … it does not fulfill my requirements. I need to be able to remove all of the drawn
points as well, the new data completely replaces the old data. Could you guys have a look
at that?
Thanks in advance :-)
On Jan 22, 2015, at 22:20, Alexandre Bergel
<alexandre.bergel(a)me.com> wrote:
Hi Johan!
We have produced the class RTDynamicGrapher. You can dynamically add elements. Here is a
try:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
b := RTDynamicGrapher new.
b maxX: 100.
b maxY: 100.
b x: #x; y: #y.
b shape circle color: (Color red alpha: 0.3).
b view addMenu: '+ 10' callback: [
b addAll: ((1 to: 10) collect: [ :i | (100 atRandom @ 100 atRandom) ]) ].
^ b
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Once you have set your instance of RTDynamicGrapher, then you can use #add:, #addAll: to
add elements. You can also change the shape if necessary.
I believe this should completely fulfill your requirements :-)
Cheers,
Alexandre
---> Save our in-boxes!
http://emailcharter.org <---
Johan Fabry -
http://pleiad.cl/~jfabry
PLEIAD lab - Computer Science Department (DCC) - University of Chile