Problem using ScrollableThumbnail with ZoomManager [message #66629] |
Wed, 26 February 2003 12:42  |
Eclipse User |
|
|
|
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 #66672 is a reply to message #66651] |
Wed, 26 February 2003 18:49  |
Eclipse User |
|
|
|
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.
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08161 seconds