Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » zooming layer problem
zooming layer problem [message #228589] Fri, 29 December 2006 17:37 Go to next message
Adam Cabler is currently offline Adam Cabler
Messages: 113
Registered: July 2009
Senior Member
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
Adam Cabler is currently offline Adam Cabler
Messages: 113
Registered: July 2009
Senior Member
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: Sun Apr 20 16:02:54 EDT 2014

Powered by FUDForum. Page generated in 0.09365 seconds