| Summary: | Connection text decorator should not be allowed to move away far from connection | ||
|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Shenxue Zhou <shenxue.zhou> |
| Component: | Core | Assignee: | Project Inbox <graphiti-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | konstantin, michael.wenz |
| Version: | 0.8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Shenxue Zhou
I would see a functionality like this rather at tool level. The tool developer can implement a restriction like this inside his own subclass of DefaultMoveBendpointFeature. This is especially true if one considers that I would find it rather hard to define a general limit for the distance that is valid accross all tools, as it would be necessary if we implement this inside the Graphiti framework. Just let me know if you have a different opinion on this. (In reply to comment #1) > I would see a functionality like this rather at tool level. The tool developer > can implement a restriction like this inside his own subclass of > DefaultMoveBendpointFeature. > This is especially true if one considers that I would find it rather hard to > define a general limit for the distance that is valid accross all tools, as it > would be necessary if we implement this inside the Graphiti framework. > Just let me know if you have a different opinion on this. That's a reasonable approach. I just experimented with my move connection decorator feature and if I return "false" in canMoveConnectionDecorator method, then the decorator won't be moved. How could I access the coordinates of the connection polyline? Thanks! The Polyline object has a list of its bendpoints (getPoints() method). Each point can be queried for its x and y coordinates. |