This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When an annotation is added to a connection they are usally represented as labels, or children of the connection. The connection anchor shapes (arrowheads) are usally attached directly to the source or target widget. However sometimes the annotation needs to be between the Anchor widget (source or target) and the arrowhead. The method AnchorShape.getCutDistance() is used to specify where the connection widget is not rendered. This feature was designed to stop rendering the connection at the edge of the anchors shape. Custom AnchorShapes could be created draw the shape at a distance away from the Anchor widgets. However that would mean that users of the API would have to make a personal copy of the standard AnchorShapes to provide this functionality. Therefore we need a way to allow the user to wrap the create a anchor shape that specifies the cut distance with out having to recreate the standard anchor shapes.
Please see the attached URL for a for in depth summary of the API Change. The URL also contains links to the source file diffs. However for connivence the diff links are: Source code Changes http://hg.netbeans.org/uml-meteora/rev/ce8e2aa62c28 Additional Documentation http://hg.netbeans.org/uml-meteora/rev/88662e2022b5 apichanges.xml http://hg.netbeans.org/uml-meteora/rev/bc1f5e49f641
I am going to merge this changes into the main repository.
The code has been added to the repository.