Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 133718 - Need a way to allow the AnchorShape dynamically determine it's location
Need a way to allow the AnchorShape dynamically determine it's location
Product: platform
Classification: Unclassified
Component: Graph
Macintosh All
: P3 (vote)
Assigned To: Trey Spiva
Depends on:
  Show dependency treegraph
Reported: 2008-04-22 21:06 UTC by Trey Spiva
Modified: 2008-06-13 14:31 UTC (History)
1 user (show)

See Also:


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 
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
Additional Documentation
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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo