Updating an already open EyeSee Canvas.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Updating an already open EyeSee Canvas.

Jacob Wagner
  Hello.  I am trying to update an already existing eyesee canvas from within pharo 2.0.  Basically I am getting live data in from a websocket stream, and want to use that live data to build a scatterplot chart.

  If I have a lot of data, I can already build the correct eyesee canvas using that data.  However, I am having great problems trying to update the already existing canvas dynamically as more data comes in.  I spent about 5 hours last night trying various combinations of message sends to the diagramrenderer, the esscatterplot diagram, the escanvas, etc. etc.  Eventually I just gave up as I don't understand how the system works.

  Just to clarify, as long as speed is not a concern I don't mind re-drawing the entire eyesee window every time new data comes in, but the key is I do not want to open a new window every time as I'm sure that would be very user-unfriendly.  

  Thanks, and thanks to the eyesee and moose team.  Despite my difficulties with it in this matter, charting with eyesee has been a neat experience. :)

-Jacob
<zenchess@gmail.com>
Reply | Threaded
Open this post in threaded view
|

Re: Updating an already open EyeSee Canvas.

Ben Coman
You could wrap it with Glamour and use updateOn:
http://www.themoosebook.org/book/internals/glamour/update

cheers -ben

Jacob Wagner wrote:

>   Hello.  I am trying to update an already existing eyesee canvas from within
> pharo 2.0.  Basically I am getting live data in from a websocket stream, and
> want to use that live data to build a scatterplot chart.
>
>   If I have a lot of data, I can already build the correct eyesee canvas
> using that data.  However, I am having great problems trying to update the
> already existing canvas dynamically as more data comes in.  I spent about 5
> hours last night trying various combinations of message sends to the
> diagramrenderer, the esscatterplot diagram, the escanvas, etc. etc.
> Eventually I just gave up as I don't understand how the system works.
>
>   Just to clarify, as long as speed is not a concern I don't mind re-drawing
> the entire eyesee window every time new data comes in, but the key is I do
> not want to open a new window every time as I'm sure that would be very
> user-unfriendly.  
>
>   Thanks, and thanks to the eyesee and moose team.  Despite my difficulties
> with it in this matter, charting with eyesee has been a neat experience. :)
>
> -Jacob
>
>
>
> --
> View this message in context: http://forum.world.st/Updating-an-already-open-EyeSee-Canvas-tp4679004.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>