[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Getting zoom information from inside a ConnectionAnchor

Hi,

I had my own custom algorithm to determine where a connection anchor should be. It works well when the zoom level is 100%, but not when the zoom level is any less. I need to take the zoom level into consideration when I calculate the coordinates.

I know I can access the ZoomManager (and hence the zoom info) of the diagram from any EditPart, but I don't know how to get the zoom info from inside a ConnectionAnchor (in which I calculate the anchor coordinates inside its getLocation())

How can a ConnectionAnchor access the zoom information of the diagram?

thanks,
Johan