Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Can GEF do that (on-demand figure creation\calculation)?
Can GEF do that (on-demand figure creation\calculation)? [message #246788] Wed, 07 January 2009 21:23 Go to next message
Eclipse UserFriend
Originally posted by: roey.izhaki.com

Hi,

Not long ago I've started exploring GEF. As part
of a research I'm conducting, I'm much more
interested in how the framework works, especially
from the design point of view.

I have two questions that might be related, still
looking at the code I couldn't figure out an
answer. Here we go:

1) Say I'm writing an musical-score editor.
Possibly, a single model will contain tens of
thousands of notes, but only a limited number of
these notes will be viewed every time. As far as I
can tell, when the model is injected to the
EditPartViewer, all the corresponding figures are
created. Considering that only 100 notes are
visible out of 50000, this would be a huge waste
of memory. Does GEF supports on-demand figure
creation (so figures are only created when visible)?

2) Say I want to present an audio waveform in an
editor. A type minute-long waveform has around 2.5
million samples - clearly it wouldn't make any
sense to render all samples as points between
which there are lines. So I need some mechanism
that renders the content of a figure with relation
to the zoom level, and does so on the fly. That
is, whenever the figure has to be drawn, it needs
to re-calculate its content (often by accessing a
file on the disk). Does GEF supports such a thing?

Thanks
Re: Can GEF do that (on-demand figure creation\calculation)? [message #246798 is a reply to message #246788] Thu, 08 January 2009 05:34 Go to previous message
Eclipse UserFriend
Originally posted by: shady_86.sify.com

hello...

GEF follows MVC architecture so all the data is carried by the model..

for Q1: in GEF you can carry the data with the model.. so you can always choose which all musical notes you want to create on the editor by applying proper filters.

for Q2: GEF have a functionality of refreshing children (or else Q1 will not be possible) but it all depends exactly how you want it to behave. You can everytime apply your own procedures to things work up according to you..,
Previous Topic:Palette Scrollbar
Next Topic:[Announce] GEF 3.5.0 I200901091431 is available
Goto Forum:
  


Current Time: Thu Apr 25 17:31:43 GMT 2024

Powered by FUDForum. Page generated in 0.02629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top