Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problem using ScrollableThumbnail with ZoomManager
Problem using ScrollableThumbnail with ZoomManager [message #66629] Wed, 26 February 2003 17:42 Go to next message
Chris Keller is currently offline Chris KellerFriend
Messages: 7
Registered: July 2009
Junior Member
I am trying to use the draw2d ScrollableThumbnail to show a thumbnail of a
figure that is zoomed using the ZoomManager. The issue appears to be that
the same scale used for the viewport depiction in the thumbnail is being
used for the figure drawing. What ends up happening is that the viewport is
drawn in the correct location relative to the figure, but the figure is not
drawn scaled correctly. Also since ScrollableThumbnail is declared final
it makes it difficult to work around the issue. Any thoughts on how to fix
or workaround without duplicating much of the ScrollableThumbnail code in a
new class.
Re: Problem using ScrollableThumbnail with ZoomManager [message #66651 is a reply to message #66629] Wed, 26 February 2003 20:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Please open a bugzilla explaining the problem. If you have code that
reproduces it, even better.
If you have a picture of the problem, maybe posting an image here is easier
than w/ bugzilla

"Chris Keller" <chris.keller@active-endpoints.com> wrote in message
news:b3ishn$tu4$1@rogue.oti.com...
> I am trying to use the draw2d ScrollableThumbnail to show a thumbnail of a
> figure that is zoomed using the ZoomManager. The issue appears to be that
> the same scale used for the viewport depiction in the thumbnail is being

Are you talking about a Viewport figure, or are you using the term viewport
to mean something else?

> used for the figure drawing. What ends up happening is that the viewport
is
> drawn in the correct location relative to the figure, but the figure is
not
> drawn scaled correctly. Also since ScrollableThumbnail is declared
final
> it makes it difficult to work around the issue. Any thoughts on how to
fix
> or workaround without duplicating much of the ScrollableThumbnail code in
a
> new class.
>
>
Re: Problem using ScrollableThumbnail with ZoomManager [message #66672 is a reply to message #66651] Wed, 26 February 2003 23:49 Go to previous message
Chris Keller is currently offline Chris KellerFriend
Messages: 7
Registered: July 2009
Junior Member
It is a viewport associated with a ScalableRootEditPart, which is being
displayed in the thumbnail. I have zoomed the display using the ZoomManager
and when I do so the SrollableThumbnail displays the viewport image
appropriately, but draws the rest of the figure as if it were not zoomed. I
have attached a picture of a graph with a 2x zoom. One figure is on
visible, but there are two figures on the graph. Notice that the
thumbnail below the graph is showing the viewport as if both figures are
within view.

If the ScrollableThumbnail was not final or better yet accepted a
ZoomManager so it could account for the zoom level of the underlying figure
it would be great. I can open a bugzilla report if that would be the
easiest way to track the issue.

Thanks in advance.

BTW - The ScrollableThumbnail works great if the figure is not zoomed. Also
super work on GEF and draw2d. I have used commercial packages in the past
and the architecture of GEF and draw2d is very good. Nice job.

"Randy Hudson" <none@us.ibm.com> wrote in message
news:b3j4uq$55l$1@rogue.oti.com...
> Please open a bugzilla explaining the problem. If you have code that
> reproduces it, even better.
> If you have a picture of the problem, maybe posting an image here is
easier
> than w/ bugzilla
>
> "Chris Keller" <chris.keller@active-endpoints.com> wrote in message
> news:b3ishn$tu4$1@rogue.oti.com...
> > I am trying to use the draw2d ScrollableThumbnail to show a thumbnail of
a
> > figure that is zoomed using the ZoomManager. The issue appears to be
that
> > the same scale used for the viewport depiction in the thumbnail is being
>
> Are you talking about a Viewport figure, or are you using the term
viewport
> to mean something else?
>
> > used for the figure drawing. What ends up happening is that the
viewport
> is
> > drawn in the correct location relative to the figure, but the figure is
> not
> > drawn scaled correctly. Also since ScrollableThumbnail is declared
> final
> > it makes it difficult to work around the issue. Any thoughts on how to
> fix
> > or workaround without duplicating much of the ScrollableThumbnail code
in
> a
> > new class.
> >
> >
>
>


Previous Topic:why are some classes left out in later GEF integration builds?
Next Topic:load HelloGef1 into a StructuredViewer
Goto Forum:
  


Current Time: Sat Nov 09 03:10:48 GMT 2024

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

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

Back to the top