[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Still struggling with coordinates
|
What you are asking is the opposite of what XYLayout does when it lays out.
So refer to its layout method
"Brad Reynolds" <bradleyjames@xxxxxxxxx> wrote in message
news:di9r6f$qdk$1@xxxxxxxxxxxxxxxxxxx
> There's something fundamental that I'm missing and hopefully someone can
> straighten me out. I have a figure that contains another figure. What I
> want is to be able to get the coordinates of the child figure relative to
> it's parent's figure. When I call any of the translate methods the check
> to useLocalCoordinates() always returns false so it doesn't translate.
> How can I translate a figure's bounds to be relative to it's parent?
>
> Thanks,
> Brad