Skip to main content



      Home
Home » Eclipse Projects » GEF » zooming layer problem
zooming layer problem [message #228589] Fri, 29 December 2006 17:37 Go to next message
Eclipse UserFriend
Hello,
I have a gef diagram with many figures(A). I want to have an
additional layer so I can selectively control visibility of some other
figures that will be child figures(B) of those figures(A). Right now,
it is working, but the layer isn't handling zoom at all. Do I have to
register a figure listener and move the children(B) manually? If so,
why here and not on the figures(A) on the diagram? They zoom fine
without any issues.

Here is what I'm doing:

1) Creating a new layer in A the same bounds as A.
2) Adding this layer to the feedback layer (so it won't show up in
thumbnail)
3) Adding the child figures(B) to the layer
They show up fine at 100%, but don't move when zoomed like figures A and
all the others do.
Re: zooming layer problem [solved] [message #228596 is a reply to message #228589] Fri, 29 December 2006 18:43 Go to previous message
Eclipse UserFriend
Found the problem. I was not adding the layer to a scalable layer.
Changing this fixed the problem.

AdamC wrote:
> Hello,
> I have a gef diagram with many figures(A). I want to have an
> additional layer so I can selectively control visibility of some other
> figures that will be child figures(B) of those figures(A). Right now,
> it is working, but the layer isn't handling zoom at all. Do I have to
> register a figure listener and move the children(B) manually? If so,
> why here and not on the figures(A) on the diagram? They zoom fine
> without any issues.
>
> Here is what I'm doing:
>
> 1) Creating a new layer in A the same bounds as A.
> 2) Adding this layer to the feedback layer (so it won't show up in
> thumbnail)
> 3) Adding the child figures(B) to the layer
> They show up fine at 100%, but don't move when zoomed like figures A and
> all the others do.
Previous Topic:disable editor editing
Next Topic:combining SWT widgets and Draw2d Figures
Goto Forum:
  


Current Time: Thu May 15 05:59:55 EDT 2025

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

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

Back to the top