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

Bug 483568

Summary: IConnectionDecoration is not properly aligned, i.e. its visual start point does not match the connection's start/end point
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF FXAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 0.2.0   
Target Milestone: 4.0.0 / 3.11.0 (Neon) M4   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2015-12-03 09:07:54 EST
The Connection manages a start decoration and an end decoration. Currently, these are not properly aligned, i.e. the decorations are not translated so that their visual start point matches the connection's start/end point.
Comment 1 Alexander Nyßen CLA 2015-12-03 09:49:35 EST
Pushed the following changes to origin/master:

- Changed that the local coordinate system of a decoration visual is regarded as being 'anchored' at the start/end point of the connection. Added a compensation to connection to ensure that decoration stroke is compensated, by compensating the layout bounds min x. Due to this, the start and end location of decorations is no longer meaniningful (we
 expect it to be (0,0)-based). The IConnectionDecoration abstraction is thus no longer of relevance either and I removed it accordingly. Added a change listener to connection to react to layout bounds changes of the decorations.
- Adjusted all IConnectionDecoration implementations to be simple Node visuals. Ensured that Polygon instead of Polyline is used in order to prevent line cap artifacts.

Resolved as fixed in 3.11.0 M4.