Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 488355

Summary: Implement ChopBoxAnchor strategy that determines anchor point as closest horizontal or vertical projection on outline.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF FXAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.wienand
Version: 0.2.0   
Target Milestone: 4.0.0 (Neon) M6   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 488358    

Description Alexander Nyßen CLA 2016-02-24 02:13:01 EST
We should provide a ChopBoxAnchor computation strategy that plays well with orthogonal connection routers. That is, the strategy should compute the anchor position as the nearest horizontal or vertical projection of the reference point to the outline of the reference shape.
Comment 1 Alexander Nyßen CLA 2016-02-24 09:01:58 EST
Pushed the following changes to origin/master:

- Renamed IComputationStrategy.Impl into ProjectionStrategy. Extracted AbstractProjectionStrategy.
- Introduced OrthogonalProjectionStrategy as an alternative strategy, which determines the nearest orthogonal projection.

I placed the necessary computations to determine the orthogonal projection into the OrthogonalProjectionStrategy for now. We need to extract it to GEF4 Geometry as part of bug #488367, as soon as all corner cases (overlap) can also be properly handled (and we now how the API for projection and orthogonal projection should look like).
Comment 2 Matthias Wienand CLA 2016-03-01 10:35:49 EST
*** Bug 488367 has been marked as a duplicate of this bug. ***
Comment 3 Matthias Wienand CLA 2016-03-01 10:38:13 EST
As the corner cases (overlap) do not require special handling, and the underlying computations are not to be moved to GEF4 Geometry, resolving this as fixed in 4.0.0 M6.