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 - API: Add ArrowAnchorShape
Summary: API: Add ArrowAnchorShape
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2007-06-03 13:37 UTC by David Kaspar
Modified: 2007-06-08 09:06 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch (9.77 KB, patch)
2007-06-05 10:14 UTC, David Kaspar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.