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 111987

Summary: VMDNodeAnchor recalculates unnecessarily
Product: platform Reporter: vieiro <vieiro>
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: DEFECT Exception Reporter:
Attachments: Patch

Description vieiro 2007-08-04 16:36:57 UTC
In Visual Graph Library 2.0 pre3, in VMDNodeAnchor.java, the variable "requiresCalculation" is never set to false

(so VMDNodeAnchor is always recalculating?)

Suggestion: add "requiresCalculation = false" at the end of the "recalculate" method.

Cheers,
Antonio
Comment 1 David Kaspar 2007-08-06 08:56:39 UTC
Yes, this is an issue and should be fixed as proposed. Additional there is a need for "Anchor.notifyRevalidate" method
to be called from "Anchor.revalidateDependency" to notify the anchor that related widget has be moved... Without this
new method the "requiresCalculation=false" cannot be applied.
Comment 2 David Kaspar 2007-08-06 08:57:05 UTC
Created attachment 46173 [details]
Patch
Comment 3 David Kaspar 2007-08-06 08:58:43 UTC
A patch has been attached. It contains the fix, the new "Anchor.notifyRevalidate" method and
apichange.AnchorNotificationTest test case.
Asking for fast API review.
Comment 4 David Kaspar 2007-08-21 09:48:45 UTC
Patch committed to the main trunk.