| Summary: | [jface] Zooming does not work when custom anchors used. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Erdal Karaca <erdal.karaca.de> | ||||
| Component: | GEF-Legacy Zest | Assignee: | gef-inbox <gef-inbox> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | steeg | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Erdal Karaca
Created attachment 209892 [details]
Example showing zooming not working properly when custom anchors used.
I had a look at what ChopboxAnchor, an existing subclass of AbstractConnectionAnchor does and it seems you need to translate the rectangle in your implementation of getLocation(). With this in getLocation(), your example zooms fine for me: Rectangle bounds = Rectangle.SINGLETON; bounds.setBounds(getOwner().getBounds()); getOwner().translateToAbsolute(bounds); |