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 105499

Summary: API: Add ArrowAnchorShape
Product: platform Reporter: David Kaspar <dkaspar>
Component: GraphAssignee: issues@platform <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: API_REVIEW_FAST
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Patch

Description David Kaspar 2007-06-03 13:37:40 UTC
For details see:
http://graph.netbeans.org/servlets/ReadMsg?list=users&msgNo=683
Comment 1 David Kaspar 2007-06-05 10:14:48 UTC
Created attachment 43229 [details]
Patch
Comment 2 David Kaspar 2007-06-05 10:16:12 UTC
AnchorFactory.createArrowAnchorShape method added.
Comment 3 vieiro 2007-06-05 15:54:44 UTC
double radians = Math.PI * degrees / 360.0;

should be

double radians = Math.PI * degrees / 180.0;

sorry,
Antonio
Comment 4 David Kaspar 2007-06-05 17:03:41 UTC
Actually I have done the angle calculation change on purpose. In technical
documentations, the angle of arrow is defined as an angle between those two
"wings" (not an angle between a wing and a line). Therefore I would like to
leave it as it is in the patch.
Comment 5 Martin Entlicher 2007-06-05 17:13:24 UTC
I apologize for stepping into discussion which does not concern me, but for
readability reasons I would prefer:

double radians = Math.PI * degrees / 180.0;
double cos = Math.cos (radians/2);

Comment 6 David Kaspar 2007-06-08 09:06:12 UTC
ME1: Done
Committed in the main trunk.