Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » thumbnails and logical zooms
thumbnails and logical zooms [message #219503] Sat, 15 July 2006 18:45 Go to next message
Eclipse UserFriend
Originally posted by: alnospammajor.noboxspamspoon.com

i want to be able to show a thumbnail that represents a logical zoom of
my editor view. i.e. it's a "higher-level" view that hides some of the
detail of the model.

i've already created a separate viewer that shows the zoomed version of
the model. i can show this viewer scaled to a small size within a
separate view so it is effectively a thumbnail.

however, i'd like to be able to use a selector figure which synchronizes
my zoomed viewer with the viewport on my main viewer (in a GEF editor).
this is similar to the functionality provided by ScrollableThumbnail.

i could use a ScrollableThumbnail on my zoomed viewer and display that
instead of the actual zoomed view, but the selector figure will
synchronize with the viewport on the zoomed view, not with the original
view. i suppose i could hook up the relevant rangemodels so that all
viewport changes flow through, but it seems to be kludgy.

one alternative is to to implement a selector figure on my zoomed viewer
which synchronizes with a viewport on the original viewer. it seems like
the scrollable thumbanil code would be a good starting point.

are there any other easy-to-implement options that i may have missed?
synchronizing viewports between a logical zoom and the original would
seem to be a relatively common use-case (a generalization of the
scrollable thumbnail).

regards,

al
Re: thumbnails and logical zooms [message #219594 is a reply to message #219503] Tue, 18 July 2006 23:44 Go to previous message
Eclipse UserFriend
Originally posted by: alnospammajor.noboxspamspoon.com

>
> i could use a ScrollableThumbnail on my zoomed viewer and display that
> instead of the actual zoomed view, but the selector figure will
> synchronize with the viewport on the zoomed view, not with the original
> view. i suppose i could hook up the relevant rangemodels so that all
> viewport changes flow through, but it seems to be kludgy.
>

a variation on this is what i got working. i had to copy/paste my own
version of ScrollableThumbnail (which is final). and i almost had to
copy/paste my own version of Thumbnail as well.

not the most elegant solution, and there's a couple of remaining
wrinkles needing to be ironed out, but its workable.

regards,

al
Previous Topic:CommandStack in two WorkbenchPart?
Next Topic:How to get figure with mouse move event?
Goto Forum:
  


Current Time: Fri Apr 19 00:23:49 GMT 2024

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

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

Back to the top