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.
Summary: | API: Add ArrowAnchorShape | ||
---|---|---|---|
Product: | platform | Reporter: | David Kaspar <dkaspar> |
Component: | Graph | Assignee: | 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
Created attachment 43229 [details]
Patch
AnchorFactory.createArrowAnchorShape method added. double radians = Math.PI * degrees / 360.0; should be double radians = Math.PI * degrees / 180.0; sorry, Antonio 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. 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); ME1: Done Committed in the main trunk. |