Community
Participate
Working Groups
The Graphiti feature objects all rely on various context objects providing relevant information about the triggering/driving user interaction. E.g. a context object may implement IPictogramElementContext and provide the pictogram you clicked on and ILocationContext and provide x,y coordinates. When interacting with a connection with bend-points, you may similarly need to know the specific segment you clicked on, e.g. to split it. It may also be useful to know its start and end locations, since this isn't always easy to compute from anchors. I propose an IConnectionSegmentContext with the following methods: - Connection getConnection() // could be FreeFormConnection or CurvedConnection - int getLineSegmentNum() // index into bendpoints or control points - int getStartX() // the actual start-point, computed from the underlying figure - int getStartY() - int getEndX() // the actual end-point, computed from the underlying figure - int getEndY()
Enhancement for post-Kepler