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.

Bug 133718 - Need a way to allow the AnchorShape dynamically determine it's location
Summary: Need a way to allow the AnchorShape dynamically determine it's location
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Trey Spiva
URL: http://wiki.netbeans.org/AttachableAn...
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2008-04-22 21:06 UTC by Trey Spiva
Modified: 2008-06-13 14:31 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trey Spiva 2008-04-22 21:06:52 UTC
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.
Comment 1 Trey Spiva 2008-04-22 22:06:43 UTC
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
Comment 2 Trey Spiva 2008-05-12 19:30:35 UTC
I am going to merge this changes into the main repository.
Comment 3 Trey Spiva 2008-06-13 14:31:14 UTC
The code has been added to the repository.