Bug 440969 - Get/Set Intersection Point between Connection and Anchor
Summary: Get/Set Intersection Point between Connection and Anchor
Status: ASSIGNED
Alias: None
Product: Graphiti
Classification: Modeling
Component: Core (show other bugs)
Version: 0.11.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 06:59 EDT by Simon Sperl CLA
Modified: 2014-08-25 10:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Sperl CLA 2014-08-01 06:59:46 EDT

    
Comment 1 Simon Sperl CLA 2014-08-01 07:07:01 EDT
reporting tool fail
Comment 2 Simon Sperl CLA 2014-08-01 07:16:36 EDT
It would be nice for layouting e.g. ConnectionDecorators to get the intersection point between Anchor and Connection.

As far as I can tell this functionality is already used in PeServiceImpl.getConnectionMidpoint but not public.

Additionally it would help in terms of behavior:
 if(c.getStart() is ChopBoxAnchor)
   if(c.firstBendpoint is within/bordering c.StartShape())
     c.connectionStart = c.firstBendpoint()
     c.removeFirstBendpoint()
   else
     c.connectionStart = c.StartShape.center()
same for end.

currently if one sets a bendpoint directly on the border of a shape the "rotation" data is lost and the ConnectionDecorator gets a constant angle (0?)